Page 1 of 1

iframe events capture server reponse

Posted: Fri Aug 08, 2008 8:12 am
by kendall
I am attempting to develop my own "ajax" simulated file upload using iframes and I have a question concerning it....

what's the best way to be able to communitcate load and response status between the parent document and the iframe and the iframes content?

Re: iframe events capture server reponse

Posted: Fri Aug 08, 2008 8:51 am
by ghurtado
Did you want to show the progress of a document you are loading inside an iframe?

Re: iframe events capture server reponse

Posted: Fri Aug 08, 2008 9:22 am
by kendall
ghurtado wrote:Did you want to show the progress of a document you are loading inside an iframe?
Naaahhh...i just need to know when the iframe is loaded....im researching this...and i am getting some conflicting reports....does the iframe have an "onload" or "onreadystate" handler?

Re: iframe events capture server reponse

Posted: Fri Aug 08, 2008 10:10 am
by ghurtado
Well, since the iframe is a separate and independent HTML document, couldn't you use it's own onLoad event?

Re: iframe events capture server reponse

Posted: Fri Aug 08, 2008 10:26 am
by kendall
ghurtado wrote:Well, since the iframe is a separate and independent HTML document, couldn't you use it's own onLoad event?
well it isnt per say...well i didnt want it to be...I'm trying to make a object that would handle the communication...this object may be dynamic and I didnt want to have to "hardcode" a reference to the loading html in the iframe as the html document would HAVE to know about the object to submit the response.