Use of XMLHttpRequest in Dashboard widget failing
Posted
by Peter Zion
on Stack Overflow
See other posts from Stack Overflow
or by Peter Zion
Published on 2010-05-08T00:32:41Z
Indexed on
2010/05/08
0:38 UTC
Read the original article
Hit count: 502
I am unable to get an XMLHttpRequest object to work correctly in a Dashboard widget I am writing. I've isolated it to a trivial example not working in the global scope of the main.js file:
xhr = new XMLHttpRequest;
xhr.open( 'GET', "http://google.com", false );
xhr.send('');
When the last line is executed I get the error "ABORT_ERR: XMLHttpRequest Exception 102" (this is in the Dashcode debugger).
Does anyone have any idea what could be wrong here?
© Stack Overflow or respective owner