gbdru2
01-03-2003, 06:24 PM
I need to be able to detect either the document properties or the HTML/content of a frame page and then invoke a function based on what I find..
eg below is the outline code for what happens..
frameset loads, triggers done() which writes data to B.
what I need is to detect whats actually in frame D so that I can trigger different functions based on what comes back..
(msn.com will not always come back because of timeouts, network problems etc) I'd like to capture the errors etc
either by document properties or by searching content (eg read html in frame D, if find 404 then assume its page not found error
The whole concept is around timing how long certain pages of a web based application take to load over a local network etc.. I now want to capture the individual errors that might occur..
cheers
D
<html>
<script>
function done(){
PD.document.open()
PD document write() .. blah blah
PD.document.close
}
</script>
<frameset name=A rows="60%,*">
<frame name="B" src="">
<frameset NAME=C rows = "100%,*" onLoad="done()">
<FRAME NAME=D SRC="http://www.msn.com">;
<FRAME NAME=E SRC="" >
</frameset>
</frameset>
eg below is the outline code for what happens..
frameset loads, triggers done() which writes data to B.
what I need is to detect whats actually in frame D so that I can trigger different functions based on what comes back..
(msn.com will not always come back because of timeouts, network problems etc) I'd like to capture the errors etc
either by document properties or by searching content (eg read html in frame D, if find 404 then assume its page not found error
The whole concept is around timing how long certain pages of a web based application take to load over a local network etc.. I now want to capture the individual errors that might occur..
cheers
D
<html>
<script>
function done(){
PD.document.open()
PD document write() .. blah blah
PD.document.close
}
</script>
<frameset name=A rows="60%,*">
<frame name="B" src="">
<frameset NAME=C rows = "100%,*" onLoad="done()">
<FRAME NAME=D SRC="http://www.msn.com">;
<FRAME NAME=E SRC="" >
</frameset>
</frameset>