Is it possible to get the contents of an iframe (I need a method that
allows me to get the generated HTML code of an XML file that was
transformed by an XSL file)?
Thanks in advance!
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