|
-
Jul 15th, 2005, 07:18 AM
#1
Send data directly to an IFrame?
I am getting an xml string and I would like it do show it as part of a page in the default formatting that IE does, but I don't want to have to save it to a file. Is this possible?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 15th, 2005, 07:31 AM
#2
Re: Send data directly to an IFrame?
I believe that the way XML is rendered is because of the extension/return type of the .XML file. For example, take an xml file, change its extension and open in IE.
Therefore... you'd have to either save your xml string to an XML file, or create some sort of a web service/page that returns a stream of xml type so that the IFRAME knows how to render it (although I haven't tried this myself)
-
Jul 15th, 2005, 09:28 AM
#3
Re: Send data directly to an IFrame?
Try getting the iframe's document and do a open('text/xml') on it, then write() the XML string there.
No idea if it works, this is just theory. I know document.write does not work in Geckos.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 15th, 2005, 10:25 AM
#4
Re: Send data directly to an IFrame?
 Originally Posted by CornedBee
Try getting the iframe's document and do a open('text/xml') on it, then write() the XML string there.
No idea if it works, this is just theory. I know document.write does not work in Geckos.
Thanks CB. The xml string is written to the document, but the content type doesn't appear to change to text/xml. Either that, or its just not rendered the same when you do a document.write.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|