XML in IFrame - can grid read?
Ok, I have a web page that has an iframe in it. The source fro the iframe is an XML file.
Why question is ... is there any way to have the AW grid read in the contents of the iframe (xml) and populate the grid?
Thanks ... Carl
Carl
November 13,
Carl,
nothing will work if the source XML is coming from another domain (except for js-flash bridge with cross-domain policy file on the source server -
http://www.crossdomainxml.org/ :-). The only real solution is server-side XML proxy -
http://developer.yahoo.com/javascript/howto-proxy.html
If you are using Apache - the proxy could be done with just one line in .htaccess file (using mod_rewrite RewriteRule command).
Alex (ActiveWidgets)
November 13,
Thanks ... I know. And it stinks! grin
I'm trying to work around the problem.
I am able to dump the entire XML file into an IFRAME on the page. I was just curious if there was a way to have AW be able to access the XML that is in the IFRAME.
Maybe I'm just not undertanding you.
Carl
November 13,
No, it's not possible to access anything inside the iframe when the content comes from another domain. And it's only possible to access html documents through the DOM API, despite that the browser can display XML, plain text, images and other document types.
Alex (ActiveWidgets)
November 13,
ok ... got it. Thanks. Makes more sense now (though it seems like a stupid limitation to me).
Thanks again Alex ...
Carl
November 13,