Thanks for your reply and advice. I've tried to get the simple "countries" part of the demo working as an initial test. If I leave out the script that ends countries.init() then I get the pretty tab bar with the options. These tabs work in that the browser jumps to the external pages but in the whole of the current window as you'd expect. When I insert the script at the end nearly 95% of my layout gets blown away and many items don't appear at all.
I'm using a three column fluid layout that has a fairly complex nested div structure. The HTML that generates the main body content is:
HTML Code:
<div id="mainBody">
<h2>Articles</h2>
<h3><a target="_blank" href="http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm">DynamicDrive.com Ajax Tabs Content Script (v 2.0)</a></h3>
<ul id="countrytabs" class="shadetabs">
<li><a href="#" class="selected" rel="#default">Tab 1</a></li>
<li><a href="dynamicdrive.com/external2.htm" rel="countrycontainer">Tab 2</a></li>
<li><a href="dynamicdrive.com/external3.htm" rel="countrycontainer">Tab 3</a></li>
<li><a href="dynamicdrive.com/external4.htm" rel="#iframe">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px solid gray; width:auto; height: 200px; scroll:auto; margin-bottom: 1em; padding: 10px">
<p>Optional default content here.</p>
</div>
<script type="text/javascript">
var countries = new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</div> <!-- mainBody -->
I don't know if that helps or, at this stage, what other information I can give you to help. The only other hint of a problem that I'm getting with Firefox is a JavaScript console message:
Code:
Warning: anonymous function does not always return a value
Source File: http://lcl.***/dynamicdrive.com/ajaxtabs/ajaxtabs.js
Line: 49
}
The demo.htm from the zip file works without any problems on my system.
Thanks in advance for any pointers/help you can give me.
Bookmarks