PDA

View Full Version : Ajax Tabs Content Script



pankajt
04-02-2009, 07:20 AM
1) Script Title:

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem:

It works well in html page but when I kept it in ASP page the links are not opening in the container...instead they open the external file itself.

Please help me with it, if anybody can fix it.

Thanks in Advance
pankaj

ddadmin
04-02-2009, 07:48 AM
It shouldn't matter what the extension of your pages being retrieved/shown. Please post a link to the page on your site that contains the problematic script so we can check it out.

pankajt
04-02-2009, 09:00 AM
Thanks but I figured out that since I included a ASP file in the container inside the main page it changed the other properties and was causing problem......

Anyways but still one more thing.....It remembers which tab is selected and again shows that same tab contents on reload....but I want to show first tab only by default but its not happening....

Can you help in that too??

TIA
pankaj

ddadmin
04-02-2009, 08:12 PM
Inside the initialization code, make sure setPersist() is set to false:


<script type="text/javascript">

var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(false)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>

pankajt
04-03-2009, 04:08 AM
Thanks buddy...:) I got it..... :D