Safari 5 Extension XMLHttpRequest Error: INVALID_STATE_ERR: DOM Exception 11

Posted by unknowndomain on Stack Overflow See other posts from Stack Overflow or by unknowndomain
Published on 2010-06-14T22:41:17Z Indexed on 2010/06/14 22:42 UTC
Read the original article Hit count: 1437

Filed under:
|
|
|
|

I am experimenting with the new Safari 5 extensions JS API and I am having an issue right from the ground up, I want to use an XMLHttpRequest to get an RSS feed from a website however upon the .send() it immediatly kicks off errors:

Failed to load resource: cancelled

Then looking at the XMLHttpRequest object is says in status: Error: INVALID_STATE_ERR: DOM Exception 11

I don't know why but this is my code, I hope I can get some advice as to whats going wrong:

var xml = new XMLHttpRequest();
xml.open('GET', 'http://year3.gdnm.org/feed/');
xml.send();

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX