Thanks in advance! :)
have you thought to transform the xml to json and just push it to a
handler in the parent frame ala googlemail
I've just been reading the YUI connection library <URL:http://
developer.yahoo.com/yui/connection/>. The library has the following
two lines of code to read the contents of an iframe when the iframe
has finished loading. "io" is the frame, and "obj" is just where they
want to store the contents of the frame.
obj.responseText = io.contentWindow.document.body ?
io.contentWindow.document.body.innerHTML :
null;
obj.responseXML = io.contentWindow.document.XMLDocument ?
io.contentWindow.document.XMLDocument :
io.contentWindow.document;
I really don't know the quality of these two lines of code.
Determining that is my next job. Anyone have any thoughts?
Peter
On Apr 23, 2:10 am, Peter Michaux <petermich...@gmail.com> wrote:
> I've just been reading the YUI connection library <URL:http://
> developer.yahoo.com/yui/connection/>. The library has the following
> two lines of code to read the contents of an iframe when the iframe
> has finished loading. "io" is the frame, and "obj" is just where they
> want to store the contents of the frame.
>
> obj.responseText = io.contentWindow.document.body ?
>
> io.contentWindow.document.body.innerHTML :
> null;
> obj.responseXML = io.contentWindow.document.XMLDocument ?
>
> io.contentWindow.document.XMLDocument :
> io.contentWindow.document;
>
> I really don't know the quality of these two lines of code.
> Determining that is my next job. Anyone have any thoughts?
>
> Peter
Thanks, I haven't thought of that :) I'll give it a try in a few
hours ;p
That would be a pretty good idea, yes, but the HTML that you get as a
result is supposed to be taken and put in a container in the parent
frame via DOM or innerHTML :p