1) Script Title: Ajax Tabs Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tent/index.htm
3) Describe problem:
I have only 1 tab whose content is dynamic and 2 tabs for which the content is static. The following is the script I am using:
This works but the problem is that I am loading an external HTML file which is blank 3 times for no reason at all. All I need is for the hidden div to show content1, content2, or content 3 based on the tab clicked. If I changeCode:<link rel="stylesheet" type="text/css" href="js/ajaxtabs/ajaxtabs.css" /> <script type="text/javascript" src="js/ajaxtabs/ajaxtabs.js"> </script> <div id="flowertabs" class="modernbricksmenu2" > <ul> <li><a href="js/external1.htm" rel="flowerdivcontainer" class="selected" rev="flowernote1" >Description</a></li> <li><a href="js/external1.htm" rel="flowerdivcontainer" rev="flowernote2" >Shipping</a></li> <li><a href="js/external1.htm" rel="flowerdivcontainer" rev="flowernote3">Guarantees</a></li> </ul> <br style="clear: left" /> </div> <div id="flowerdivcontainer" style="border:1px solid gray; width:550px; height: 400px; background-color: lightyellow; padding: 5px"> </div> <div id="flowernote1" style="display:none; position:relative; left: 12px; top:-398px; width:543px; height:380px; background-color:lightyellow; color:Black; overflow:auto" rel="flowerdivcontainer"> <b>Description</b> content1 </div> <div id="flowernote2" style="display:none; position:relative; left: 12px; top:-398px; width:543px; height:380px; background-color:lightyellow; color:Black; overflow:auto" rel="flowerdivcontainer"> <b>Shipping</b> content2 </div> <div id="flowernote3" style="display:none; position:relative; left: 12px; top:-398px; width:543px; height:380px; background-color:lightyellow; color:Black; overflow:auto" rel="flowerdivcontainer"> <b>Guarantee</b> content3 </div> <script type="text/javascript"> var myflowers=new ddajaxtabs("flowertabs", "flowerdivcontainer") myflowers.setpersist(true) myflowers.setselectedClassTarget("link") //"link" or "linkparent" myflowers.init() </script>
with sayCode:<li><a href="js/external1.htm" rel="flowerdivcontainer" class="selected" rev="flowernote1" >Description</a></li>
the same page is reloaded (i.e. the referring page where the tabs are)Code:<li><a href="#" rel="flowerdivcontainer" class="selected" rev="flowernote1" >Description</a></li>
I am at my wits ends. Can someone help? Much appreciated
Frank



Reply With Quote


Bookmarks