Click to See Complete Forum and Search --> : get error page on page that is not responding


florida
03-05-2003, 01:01 PM
Anyway to put a settimeout() where I would show a message on my page if it hangs for more than 2 minutes? Right now when our NT server is down my page just keeps hanging for 10 to 15 minutes. I was hoping to do some sort of timeout where it would kick in after 2 minutes and give me an error page with a specific message saying "our web server is not available".


Would this go into "body onload" and I would set a funtion there? Please advise how I can do this?

Jona
03-05-2003, 01:08 PM
You'd probably only be able to do this server-side, since your question is concerning if the page has loaded. Now your server-side function would have to do with if the page has loaded, then kick in this Javascript, and you'd just have the Javascript function on your page that only kicks in if the page has not loaded.