vinyl
Joined: 27 Dec 2009 Posts: 4
|
| Posted: Sun Dec 27, 2009 - 9:20 am Post subject: Doing a XMLHttpRequest |
|
|
I am trying to get data from an URL into a textarea of my widget, just for basic testing.
The request I am doing is this:
| Code: |
var Socket = new XMLHttpRequest();
Socket.open("GET", "http://api.rapidshare.com/cgi-bin/rsapi.cgi", true);
Socket.send(null);
document.getElementById('RapidshareDetails').innerHTML = Socket.repsonseText;
|
It should give back an error message since I didnt specify any details, the script can provide basic Rapidshare account details.
However I cant get the response into my text area. I doesnt show up, but in the browser it does..
Any ideas? |
|