I would first try using the instance.onajaxpageload function to initialize the content imported from the external page.
To use this method, you would have the facebox and jQuery scripts and the facebox css on the "top" page (the one with the tabs on it). Then where you go to initialize the tabs script - say you have something like so:
Code:
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
To make facebox links on messaging.php work in the tab, add the highlighted:
Code:
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
countries.onajaxpageload = function(pageurl){
if (pageurl.indexOf("messaging.php")!=-1){
jQuery.facebox.settings.closeImage = 'facebox/closelabel.png'; // change to path relative to the 'top' page
jQuery.facebox.settings.loadingImage = 'facebox/loading.gif'; // change to path relative to the 'top' page
jQuery('a[rel*=facebox]').facebox();
}
};
If you want more help, please post a link to the page on your site with the problematic code.
Bookmarks