By timeout, do you mean the page actually failing to load, or just not load within a certain timeframe? For the former, it's easier to handle. Inside the .js file, try adding the code in red to the existing block below:
Code:
ddajaxtabs.loadpage=function(page_request, pageurl, tabinstance){
var divId=tabinstance.contentdivid
document.getElementById(divId).innerHTML=ddajaxtabssettings.loadstatustext //Display "fetching page message"
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
document.getElementById(divId).innerHTML=page_request.responseText
ddajaxtabs.ajaxpageloadaction(pageurl, tabinstance)
}
else
document.getElementById(divId).innerHTML='<b style="color:red">Error fetching content. Please try again later.</b>'
}
Bookmarks