Click to See Complete Forum and Search --> : Auto reload to previous page


zanghani
07-31-2003, 01:27 PM
Hi,
I have an asp page that checks if a particular server is online. If it is not, then this asp page jumps to serverNotRunning.htm
Now, every time the server goes down, I have to run around our facility and manually reload the asp file on all the machines that were using that file. I'm new to javascript and want something that would automatically try to reload the prevous pages after every 5 minutes or somthing all the machines.
I don't know if http_referer would work in this case, since the asp file automatically calls serverNotRunning.htm
I was also thinking of using the history to back up to the last page, but I don't know if that would work properly.
I can't just use the refresh tag to go to the asp file, since all machines are using that file, but with different query strings to get different info, and I don't know a way of keeping track of which machine is displaying what.

Thanks

Khalid Ali
07-31-2003, 09:53 PM
ummmm..what is it you want?...:D

zanghani
08-04-2003, 12:30 PM
Well, I want an automatic page reload. Let me give you an example:

View.asp displays various reports based on the query string.It refreshes the page every minute. If the server is down, it loads serverNotRunning.htm.
Now, we have 4 stations that are using View.asp, with different query strings.

What I want is, some code that I could put in serverNotRunning.htm, that would reload View.asp with its query string.

So, lets say, after 5 minutes, serverNotRunning.htm would jump back to View.asp?display=PaintReport on one station, while on the other it would go to View.asp?display=Exec, since these were the reports that were running on the respective machines before the server went down.