iframe events capture server reponse

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

iframe events capture server reponse

Post 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?
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: iframe events capture server reponse

Post by ghurtado »

Did you want to show the progress of a document you are loading inside an iframe?
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Re: iframe events capture server reponse

Post 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?
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: iframe events capture server reponse

Post by ghurtado »

Well, since the iframe is a separate and independent HTML document, couldn't you use it's own onLoad event?
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Re: iframe events capture server reponse

Post 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.
Post Reply