473,379 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

OnError

sid
I am writing a webpage that loads another frame. I have written a
routine to trap the "OnLoad" event and test to see if the page I
wanted to be loaded was what was loaded.

But, that only works if the server responds. If the server does not
respond you end with a "Action Cancelled" page with the small print
"Internet Explorer was unable to link to the ...".

This page does not file the OnLoad event or the OnError event.
Can someone tell me what event it does fire or how to trap it ?

Thanks

Sid.

May 7 '07 #1
2 1774
sid wrote:
I am writing a webpage that loads another frame. I have written a
routine to trap the "OnLoad" event and test to see if the page I
wanted to be loaded was what was loaded.

But, that only works if the server responds. If the server does not
respond you end with a "Action Cancelled" page with the small print
"Internet Explorer was unable to link to the ...".

This page does not file the OnLoad event or the OnError event.
Can someone tell me what event it does fire or how to trap it ?
Do you mean an iframe or a regular frame? Either way, check for content
in that frame. If you find the content you seek, your content has
loaded. If not, it did not.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 8 '07 #2
sid
On May 8, 12:10 am, -Lost <maventheextrawo...@techie.comwrote:
sid wrote:
I am writing a webpage that loads another frame. I have written a
routine to trap the "OnLoad" event and test to see if the page I
wanted to be loaded was what was loaded.
But, that only works if the server responds. If the server does not
respond you end with a "Action Cancelled" page with the small print
"Internet Explorer was unable to link to the ...".
This page does not file the OnLoad event or the OnError event.
Can someone tell me what event it does fire or how to trap it ?

Do you mean an iframe or a regular frame? Either way, check for content
in that frame. If you find the content you seek, your content has
loaded. If not, it did not.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
I wanted to find another solution other than polling.

I can't seem to find an event that it fires when the server does not
respond.

Any help is appreciated.

Eli.

May 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert Oschler | last post by:
If I set window.onerror to an error handler I've created, I don't see the browser error dialogs anymore but I don't see the alert() messages in my error handler pop up either. Can someone tell me...
4
by: Jürgen Heyn | last post by:
Good afternoon, I am handing a string as a parameter pImage = "Images/Available.jpg" If this image is NOT available I would like to load Images/NoImage.jpg. Unfortunately the following code...
1
by: bjarthur | last post by:
i have (see below) what i think is a fairly simple algorithm, but yet it doesn't work. given a directory with consecutively numbered jpeg files (1.jpg, 2.jpg, 3.jpg...), it is designed to count...
2
by: Tee | last post by:
what's the differences between "Overrides Sub OnError" and "Sub Page_Error" ?
3
by: Tobius | last post by:
I want to be able to define a custom onerror event that detects an attempt to call a known function and load a file if it's not already loaded and re-call the function. The only problem is that any...
2
by: crazydave | last post by:
Hi, I've been using window.onerror to capture and report JavaScript errors from other users for debugging an application I've written. But I've run into a strange issue with Firefox and...
5
by: Pete Verdon | last post by:
I'm working on a fairly sizeable javascript application. I recently added some error-handling to it, using window.onerror to catch them. This sometimes works and sometimes doesn't; if I introduce a...
4
by: josh | last post by:
Hi if I try to attach onerror event via addEventListener window.addEventListener("error", myError, false) it does not work as it pass to myError only the event object but not the three...
5
by: test9991014 | last post by:
Hi, I gather that Javascript standard function names are case sensitive and they follow the old Smalltalk manner of applying case e.g. thisName, however I am curious, I see "onerror" mentioned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.