By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

verify page loaded succesfully in frame

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a

"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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.