Hmm embedding ajax tabs within a content that's dynamically retreived in itself can get messy, mainly because the script wasn't designed for this. It's possible as you've described above, but there are still many problems here and there.
Is there some way to trigger the script to be called after clicking on the tab.
By triggering I gather you mean the function startajaxtabs()? Basically since we're talking about Ajax tabs that are by themselves fetched via Ajax, you can only call the aforementioned function to initalize them after they've been fully retrieved and added to the page. The relevant function within the script is:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
//startajaxtabs(tabcontentid)
}
So you can only call this function when the request reaches a readyState of "4" (aka "complete"), and the tabs are now present on the page. Now all this is just theory, but you get the idea.
Bookmarks