Hi
I am using xmlhttprequest in my web application in Dashcode.
Always i got readystate is 1 and the code is not executing further. my code has shown below.
var invocation = new XMLHttpRequest();
url = "http://developer.apple.com/internet/webcontent/xmlhttprequestexample/songs.xml";
var invocationHistoryText;
alert("invocation");
invocation.onload = function() {
alert("onload");
alert(invocation.readyState);
alert(invocation.status);
alert(invocation.responseText);
};
invocation.open('GET', url, true);
invocation.send(null);
if i execute the above code from my desktop its working fine. but in dashcode it is not working.
Anybody knows the solution for this?
thanks
mindus
I am using xmlhttprequest in my web application in Dashcode.
Always i got readystate is 1 and the code is not executing further. my code has shown below.
var invocation = new XMLHttpRequest();
url = "http://developer.apple.com/internet/webcontent/xmlhttprequestexample/songs.xml";
var invocationHistoryText;
alert("invocation");
invocation.onload = function() {
alert("onload");
alert(invocation.readyState);
alert(invocation.status);
alert(invocation.responseText);
};
invocation.open('GET', url, true);
invocation.send(null);
if i execute the above code from my desktop its working fine. but in dashcode it is not working.
Anybody knows the solution for this?
thanks
mindus