epescol
04-21-2009, 09:00 AM
1) Script Title: Ajax Tabs Content Script (v 2.2)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent
3) Describe problem:
Nice and helpfull Script !!
... I am not able to bring the script works correctly with 3 nested tabs
<script type="text/javascript">
var countries_1=new ddajaxtabs("countrytabs_1", "countrydivcontainer_1");
countries_1.setpersist(false);
countries_1.setselectedClassTarget("link"); //"link" or "linkparent"
countries_1.init();
countries_1.onajaxpageload=function(pageurl){
if (pageurl.indexOf("/admin/esercizi/esercizi.inc.php")!=-1){
sedondLevelTab_1=new ddajaxtabs("tabsMain_84", "tabsMainContainer_84");
sedondLevelTab_1.setpersist(false);
sedondLevelTab_1.setselectedClassTarget("link"); //"link" or "linkparent"
sedondLevelTab_1.init();
}
else if (pageurl.indexOf("/admin/esercizi/esercizi_offerteAjaxTabs.php")!=-1){
thirdLevelTab_1=new ddajaxtabs("tabsOfferte_84", "offerteContainer_84");
thirdLevelTab_1.setpersist(false);
thirdLevelTab_1.setselectedClassTarget("link"); //"link" or "linkparent"
thirdLevelTab_1.init();
}
}
</script>
The script works only with 2 nested tabs ...
Any ideas if this is a script issue or if I have not correctly configured the script ?
Thank you
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent
3) Describe problem:
Nice and helpfull Script !!
... I am not able to bring the script works correctly with 3 nested tabs
<script type="text/javascript">
var countries_1=new ddajaxtabs("countrytabs_1", "countrydivcontainer_1");
countries_1.setpersist(false);
countries_1.setselectedClassTarget("link"); //"link" or "linkparent"
countries_1.init();
countries_1.onajaxpageload=function(pageurl){
if (pageurl.indexOf("/admin/esercizi/esercizi.inc.php")!=-1){
sedondLevelTab_1=new ddajaxtabs("tabsMain_84", "tabsMainContainer_84");
sedondLevelTab_1.setpersist(false);
sedondLevelTab_1.setselectedClassTarget("link"); //"link" or "linkparent"
sedondLevelTab_1.init();
}
else if (pageurl.indexOf("/admin/esercizi/esercizi_offerteAjaxTabs.php")!=-1){
thirdLevelTab_1=new ddajaxtabs("tabsOfferte_84", "offerteContainer_84");
thirdLevelTab_1.setpersist(false);
thirdLevelTab_1.setselectedClassTarget("link"); //"link" or "linkparent"
thirdLevelTab_1.init();
}
}
</script>
The script works only with 2 nested tabs ...
Any ideas if this is a script issue or if I have not correctly configured the script ?
Thank you