02-04-2011 11:10 PM - edited 02-04-2011 11:11 PM
I try to do some AjaxCall using the example in the Webcast from yesterday by i have some troubles. The readystate is stucked at 1. (I didnt forget to add the domain in config.xml)
Anyone has succesfully completed an ajax call ?
Solved! Go to Solution.
02-05-2011 02:43 PM
I've been able to make a successful AJAX call using the standard XMLHttpRequest object..
Are you using a third party library such as jQuery or Dojo to make the AJAX call?
02-07-2011 07:20 PM - edited 02-07-2011 07:52 PM
I tried a cross domain call with the standard XHR Object but I can figure out what's wrong. My code is very simple:
But my ReadyState is stucked at 1...
My config file is
<access uri='*' subdomains="true"/>
02-07-2011 09:13 PM
readyState = 1 means send() method has not been called.
Looking at your code snippet, I see a typo - there should be no closing braces at the end of the handleResponse method name. This is a reference to the function, not a call to it. Try changing this line to the following and trying again:
req.onreadystatechange = handleResponse;