473,406 Members | 2,467 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,406 software developers and data experts.

verify page loaded succesfully in frame

What is the standard practice to verify that a page has loaded succesfully
in a frame when one issues a framename.href="url"? For example, detecting
404's, or other errors (like domain doesn't exist).

thanks
Jul 23 '05 #1
3 1525
In article <42********@news.microsoft.com>, "Luis Hernandez" <luish[<[at]>]
microsoft.com> enlightened us with...
What is the standard practice to verify that a page has loaded succesfully
in a frame when one issues a framename.href="url"? For example, detecting
404's, or other errors (like domain doesn't exist).


I believe you can have an onload handler for a frame, as with an image.
But keep in mind that if the source is not on the same server, domain, and
protocol, you can't check the doc to see if it's a 404 or not.
For this kind of thing, server-side scripting is better.

--
--
~kaeli~
Profanity: the single language in which all programmers are
expert.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <42********@news.microsoft.com>, "Luis Hernandez" <luish[<[at]>] microsoft.com> enlightened us with...
What is the standard practice to verify that a page has loaded succesfully in a frame when one issues a framename.href="url"? For example, detecting 404's, or other errors (like domain doesn't exist).


I believe you can have an onload handler for a frame, as with an image.
But keep in mind that if the source is not on the same server, domain, and
protocol, you can't check the doc to see if it's a 404 or not.
For this kind of thing, server-side scripting is better.


So how would I do that?

(1) parent.theframe.location.href=URL
(2) ??

The pages loaded in the frames are all in the same domain so I have full
access to the contents.

Is there a standard way of checking that 'all is ok' ? Otherwise, I have to
use findText("404") or variations of it?

Thanks!
Jul 23 '05 #3

Luis Hernandez wrote:
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <42********@news.microsoft.com>, "Luis Hernandez" <luish[<[at]>]
microsoft.com> enlightened us with...
What is the standard practice to verify that a page has loaded succesfully in a frame when one issues a framename.href="url"? For example, detecting 404's, or other errors (like domain doesn't exist).


I believe you can have an onload handler for a frame, as with an image. But keep in mind that if the source is not on the same server, domain, and protocol, you can't check the doc to see if it's a 404 or not.
For this kind of thing, server-side scripting is better.


So how would I do that?

what about onreadystatechange()?
(1) parent.theframe.location.href=URL
(2) ??

The pages loaded in the frames are all in the same domain so I have full access to the contents.

Is there a standard way of checking that 'all is ok' ? Otherwise, I have to use findText("404") or variations of it?

Thanks!


Jul 23 '05 #4

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

Similar topics

3
by: foldface | last post by:
Hi Given a web page using frames, is there anyway the left frame can request a page in the right frame and, most importantly, detect when it has fully loaded? Ideally this requires no changes to...
6
by: foldface | last post by:
Hi I think from looking into google newsgroups history that you can't do this, however can someone confirm that: Using IE6 Can you load a web page (say www.google.co.uk) Then move to a web...
4
by: Mark | last post by:
I am loading source files into several iframes, with each load happening after some user-generated event (like clicking a button). The loading works but I need to determine when the source file is...
6
by: adnanx82 | last post by:
Hi, I was wondering if anyone knew how to perform the following 2 tasks in Javascript: 1) distinguish between frames and iframes (during an onload event for example) 2) figure out whether a...
4
by: Andrew Poulos | last post by:
How can a page know which frame in a frameset it is in? Andrew Poulos
8
by: Andrew Poulos | last post by:
I'm trying to get every tag in a page within a frameset. So far I can get everything but IE 5 to behave by using: // in the frame set window.onload = function() { mypage = window.frames; ......
1
by: David A. Beck | last post by:
I have a frameset with an index frame and a main frame. The aspx pages in the main frame are loaded based on the hyperlinks clicked in the index frame. In any aspx page in the main frame I want to...
3
by: Daz | last post by:
Hi everyone. I am making a stand alone web application, that listens for when the DOM content of a frame is loaded. Once it's loaded, I would like to stop the frame from loading further, as I...
4
by: sid | last post by:
Can someone tell me how to detect "Action Cancelled" page with out polling. I have a frame set and I want to make sure the other frame is displaying what it is supposed to without polling. For...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.