View Full Version : Dynamic Ajax Content - Loading Message
badbussenab
02-14-2007, 06:22 PM
I'm using this script:
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
How do I add so that a loading message such as "Loading Page..." shows up when the content is being loaded?
Thanks.
badbussenab
02-14-2007, 07:52 PM
Sorry for not searching before posting.
Solution found here.
http://www.dynamicdrive.com/forums/showthread.php?t=15688&highlight=Loading+Message
badbussenab
02-14-2007, 08:01 PM
Just one question. How do I apply the solution to this script?
http://dynamicdrive.com/dynamicindex17/ajaxincludes.htm
thetestingsite
02-14-2007, 08:10 PM
Find this in the code:
function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}
and add change it to this:
function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200) {
document.write(page_request.responseText);
}
else {
document.write("Loading Content....Please Wait!");
}
}
Hope this helps.
badbussenab
02-14-2007, 08:43 PM
Thanks.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.