Hello everybody,
I use the basic implementation of ajax tabs method given on the site. It works perfectly, but I would like to add a new tab which will open other multiple tabs in the div content. So I have multiple tabs with a div content and in this div I have multiple tabs with an other div content. The problem is that nothing appears in this new div content.
I understood that I had to instanciate a new ddajaxtabs object with the second tabinterfaceid and contentdivid. So my solution was to do it in the expandtab:function(tabref).
I have added a condition to tell that if I have clicked on the specific tab (of my first tabs list) then I have to instanciate a new ddajaxtabs object with the tabinterfaceid and contentdivid of my second tabs list.
It should work ! But the surprise is that it works only if I put an alert message in the if instruction :Code:if (tabref=="http://localhost/benchTWS/gui/TWS/TWSManagement.php"){ var toto=new ddajaxtabs("twstabs", "twsdivcontainer") toto.setpersist(true) toto.setselectedClassTarget("link") //"link" or "linkparent" toto.init() }
Somebody can help me please ???Code:if (tabref=="http://localhost/benchTWS/gui/TWS/TWSManagement.php"){ alert("working") var toto=new ddajaxtabs("twstabs", "twsdivcontainer") toto.setpersist(true) toto.setselectedClassTarget("link") //"link" or "linkparent" toto.init() }



Reply With Quote
Bookmarks