[thelist] XHR and the document.domain property

Bojan Tesanovic btesanovic at gmail.com
Tue Sep 4 11:20:17 CDT 2007

Hi Bratisav,

this is restriction of cross-domain policy for XHR, though there is a hack to 
overcome this using active script tag  and JSON,
there are lot of articles about it google for
"JSON active script tag cross domain",
here is nice one

Marcus Bristav wrote:
> Using XmlHttpRequest (MSXML6) in IE I've been trying to do requests to
> (for example):
> http://ws.test.com/data.xml
> from a page at
> http://bs.test.com/main.html
> but get illegal access. I've tried to set the document.domain property
> in the HTML document object to no avail. Is there some other trick I
> can do to get content at this semi-other domain or is XHR more
> restricted than the normal DOM in this regard?
> Cheers,
> /Marcus

Bojan Tesanovic

More information about the thelist mailing list