I need to be able to detect either the document properties or the HTML 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 document properties or by searching content (eg read html in frame D, if find 404 then assume its page not found error
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=" <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 document properties or by searching content (eg read html in frame D, if find 404 then assume its page not found error
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=" <FRAME NAME=E SRC="" >
</frameset>
</frameset>