I'm using this script:
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
How do I add so that a loading message such as "Loading Page..." shows up when the content is being loaded?
Thanks.
I'm using this script:
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
How do I add so that a loading message such as "Loading Page..." shows up when the content is being loaded?
Thanks.
Sorry for not searching before posting.
Solution found here.
http://www.dynamicdrive.com/forums/s...oading+Message
Just one question. How do I apply the solution to this script?
http://dynamicdrive.com/dynamicindex17/ajaxincludes.htm
Find this in the code:
and add change it to this:Code:function writecontent(page_request){ if (window.location.href.indexOf("http")==-1 || page_request.status==200) document.write(page_request.responseText) }
Hope this helps.Code: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!"); } }
Thanks.
Bookmarks