:: Forum >>

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
Monday, November 13, 2006
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)
Monday, November 13, 2006
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
Monday, November 13, 2006
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)
Monday, November 13, 2006
ok ... got it. Thanks. Makes more sense now (though it seems like a stupid limitation to me).

Thanks again Alex ...
Carl
Monday, November 13, 2006

This topic is archived.


Back to support forum

Forum search