Based on the contents of your "externalnested.htm":
Code:
<ul id="provincetabs" class="shadetabs">
<li><a href="external1.htm" rel="provincedivcontainer">Tab 1</a></li>
<li><a href="external2.htm" rel="provincedivcontainer">Tab 2</a></li>
<li><a href="external3.htm" rel="provincedivcontainer">Tab 3</a></li>
</ul>
<div id="provincedivcontainer" style="padding: 10px; border-top: 1px solid gray;">
</div>
Your second block of initialization code should look like this:
Code:
countries.onajaxpageload=function(pageurl){
if (pageurl.indexOf("externalnested.htm")!=-1){
var province=new ddajaxtabs("provincetabs", "provincedivcontainer")
province.setpersist(true)
province.setselectedClassTarget("link") //"link" or "linkparent"
province.init()
}
In other words, the variable names used in the 2nd block should differ from the first (ie: countries versus province).
Bookmarks