Title: TEST
so you want to check if the server is available before refreshing the page?
 
something like this:
 
function refreshme(){
    var ping= new Image()
    ping.>
    ping.src='http://www.theServer.com/imageThatExistsOnTheServer.gif'
}
function _refreshme(){
   // do  the refreshing here
}
 
 
Without actually testing this, I think it should work.
 
Richard.
 
----- Original Message -----
Sent: 16 May, 2001 23:36
Subject: [Dynapi-Dev] webapp testing for server

I've got a webapp rather than a webpage; the user keeps the browser
window around for
a while. I'd like the javascript ot periodically refresh the page by
reloading the page. All is
great unless the server is down or the user has an intermittent internet
connection (modem, etc.).
In that case the user gets one of these message windows telling them
that they can not
connect to the server. Since the user did not explicilty request a
connection, such a message
window is at best confusing and at worse, if the user goes away for the
weekend, could fill
up the user's screen with message windows.

This could be done with Java but I'd first like to know if it can be
done with just javascript.

Attached is a very small html page with calls window.location.replace to
an
non-existing server, thus demonstrating the problem.

On netscape the replace() method is a native method so one can not
rework its inner guts.

Thanks.

RME


Waiting for truth.

Reply via email to