There are many ways to select a nested tab from outside the tabs interface itself. The easiest way is to add to your onajaxpageload event handler the code in red below:
Code:
countries.onajaxpageload=function(pageurl){
if (pageurl.indexOf("externalnested.htm")!=-1){
var provinces=new ddajaxtabs("provincetabs", "provincedivcontainer")
provinces.setpersist(true)
provinces.setselectedClassTarget("link") //"link" or "linkparent"
provinces.init()
if (typeof nestedtabindex!="undefined" && nestedtabindex>-1)
provinces.expandit(nestedtabindex)
nestedtabindex=-1
}
This registers a variable nestedtabindex that you can set anywhere on your page to select the "x" nested tab (0=1st tab). So for example, you may have:
Code:
<a href="#" onClick="countries.expandit(1); nestedtabindex=2">Select "2nd" tab</a>
This link when clicked on first selects the 2nd main tab, and when its Ajax Content loads, selects the 3rd nested tab within it.
Bookmarks