Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trap page cannot be displayed?

Status
Not open for further replies.

Neilf

Technical User
May 15, 2001
22
0
0
GB
I'm fairly sure this isn't possible but pls. let me know if i'm wrong!

I need to trap the 'page cannot be displayed' error when a user submits a form (the users are working offline - when they submit it should reconnect and reload the same page - it doesn't if there's a problem with the line).
Is there any client side script that can prevent the error page displaying and show an alert instead.

Alternatively is there any script that can try to reconnect before submitting and report success / failure?

Thanks in advance. :)

 
Sorted this out using javascript to open another page on the server in a new hidden window and then checking something in it (e.g title) to make sure it has loaded OK (use setInterval or setTimeout to give it time to load). If OK then submit the form. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top