Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Development

Doing a XMLHttpRequest

Author Message
vinyl



Joined: 27 Dec 2009
Posts: 4

Posted: Sun Dec 27, 2009 - 9:20 am    Post subject: Doing a XMLHttpRequest Reply with quote

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?
View user's profile Send private message Send e-mail Widgets
vinyl



Joined: 27 Dec 2009
Posts: 4

Posted: Mon Dec 28, 2009 - 2:10 am    Post subject: Reply with quote

I solved this problem.

Dont have code here, but will post my solution
View user's profile Send private message Send e-mail Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group