Synchronous xmlHttpRequest
Hi, I'm having problems getting synchronous requests to work. Asynchronous requests works well and seems to be in all examples given (i.e. [url]http://wiki.forum.nokia.com/index.php/Using_widgets_to_access_web_services[/url]).
[CODE]
var xhr = new XMLHttpRequest();
xhr.open("GET", ANY_URL, false); // Note that false is synchronous
xhr.send(null); // this is where device freezes
alert(xhr.responseText);
[/CODE]
Does s60 wrt even allow synchronous requests? If not, then why is it not documented?
Edit: Tried this out on N97.
Re: Synchronous xmlHttpRequest
Hello,
It seems to work as it should for both the local files and for remote files.
Are you sure that your server is accessible?
Btw,
What is the SW in your N97 (*#0000#)
Br,
Ilkka - FN
Re: Synchronous xmlHttpRequest
What is SW and where can I find it? Also, the remote file is accessible. Right now, I have to use asynchronous requests otherwise I'll get "Application is busy".
Re: Synchronous xmlHttpRequest
I meant Firmware version. It can be obtained trough dialer by entering *#0000#.
BTW.
Is there some special reason to use synchronous requests?
Br,
Ilkka