Cannot get xml using xmlhttprequest GET from an external javascript document

12 views
Skip to first unread message

Chen Kun

unread,
Mar 14, 2015, 5:15:55 PM3/14/15
to django...@googlegroups.com
I tested the link and the link returns me a XML in the browser. In my external javascript document, I try to use get XMLhttprequest to get the document but it fails. The readystate=4 but status=0. Does anyone know the reason? Thanks.

Tim Graham

unread,
Mar 14, 2015, 5:48:22 PM3/14/15
to django...@googlegroups.com
Not sure your question is best suited for this mailing list as this seems to be a JavaScript question and not Django related, but maybe you are running into the the same-origin policy: http://en.wikipedia.org/wiki/Same-origin_policy

It helps to include a code snippet as it's difficult to determine what you are actually doing simply from the description.
Reply all
Reply to author
Forward
0 new messages