Yes, that's true. You may also need to initialize imported content before it will work with the scripts Arie has correctly instructed you put on the 'top' page.
To do that the Ajax Tabs script has an optional onajaxpageload property that you can configure if necessary to initialize newly arrived content, example using a typical init:
Code:
var countries=new ddajaxtabs("countrytabs", "submain_gallery")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.onajaxpageload = function(pageurl){
$("a[rel=example_group]").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
};
countries.init()
In the above, the highlighted is initializing fancybox. You may replace that highlighted code with whatever is required (if anything) to initialize your imported content. Notice the red pageurl argument. It's not required in the above example. It contains a reference to the url of the page that was loaded. This can be helpful in some cases. For more information, see:
http://www.dynamicdrive.com/dynamici...uppliment3.htm
Bookmarks