I am using this script, which works with ahah.js to load dynamic html content on other pages through a url string.
...The problem is that sometimes the dynamic and the default content do not load even when the parent page opens(ie Services.html)...
< defer="defer" language="javascript" type="text/javascript">
<!-- //
function loadcontent(filename)
{
ahah(filename,"divcontent");return false;
}
var picURL
picURL = getQueryString(0)
if (picURL.length > 0)
loadcontent(picURL);
else
/*default content*/
loadcontent("client_service/main1%2Ehtm");
//-->
</script>
an example of a url string I am using is"Services.html?picURL=%22client_service/sales%2Ehtml%22"
The string opens a page: Services.html and then loads sales.html onto the divcontent in Services.html
The problem is that sometimes the dynamic and the default content do not load even when the parent page opens(ie Services.html).
Can anybody please explain to me what I could be doing wrong?
PS: At the moment I am avoiding ajax script...(Thanks in advance)