[Javascript] Detecting that a page is accessible

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Tue Aug 13 09:30:46 CDT 2002


Hi 

I think I got a solution for you 
You could create a page with a frameset on the top frame you will have a
function who launch the seconde frame 
now the trick in your top frame you create a variable and you only populate
that variable when the seconde frame load with the page from your server,
and you just have a setTimeout on the top frame who gonna check the value of
that variable if the value stay false after 10 or 15 seconde you will
redirect to your free page 

Laurent 


-----Original Message-----
From: Fernando, Robert [mailto:Robert.Fernando at anitetelecoms.com]
Sent: 13 August 2002 14:22
To: 'javascript at LaTech.edu'
Subject: [Javascript] Detecting that a page is accessible


Hi all,

Is it possible in JavaScript to detect a page / server not being accessible.

I am, aiming to do this so that I can redirect user to either my webserver
if active and connected to the internet or to a free WebPages server, which
mirrors my webserver.
In other words a failure and redirect script.

thanks

Robert Fernando
Personal views not  necessarily those of 
Anite Telecoms Ltd, Registered in England No. 1721900  Registered Office:
100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP, United Kingdom
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.



More information about the Javascript mailing list