Unfortunately, browser DHTML is even more restrictive than swf, because there is no equivalent of a "crossdomain.xml" file that you can put on a server to allow cross domain XML data loading. The browser security settings are very conservative, and access to 3rd party sites via script is not allowed by default.
In order for an application to access XML data from a 3rd party site, you must use some sort of a proxy service to get the data, via the same server that your application originally downloaded from. I don't know of any easy way around this security limitation. There are some proposals out for standardizing a kind of crossdomain.xml file for DHTML, but I don't know which browsers support that yet. Now that I think about it, I suppose it would be possible to embed a tiny Flash application that could do XML data loading, and communicate with it via the Flash->browser communication API, in order to at least load data from sites that have a crossdomain.xml. I don't think anyone has done that yet. On Thu, Jul 17, 2008 at 12:35 AM, ono keiji <[EMAIL PROTECTED]> wrote: > I know there are cross-domain issue on SWF, but is there also on DHTML ? > I build a small app, that it get some data from another server. > Of cause when proxied="true" works fine both SWF and DHTML, but when it turn > to proxied="false", > i got a cross-domain issue on SWF, that i can understand why it did. > But on DHTML i got the below message in debug window. > > --------------------------- > ERROR: uncaught exception: [Exception... "Access to restricted URI denied" > code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: > "http://localhost:8080/lps-4.1.1/lps/includes/lfc/LFCdhtml-backtrace.js > Line: 19374"] > --------------------------- > > No way, is there a cross-domain issue on DHTML ? > > Thanks, > ono > > -- Henry Minsky Software Architect [EMAIL PROTECTED]
