×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    3

    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. http://wiki.forum.nokia.com/index.ph...s_web_services).

    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);
    Does s60 wrt even allow synchronous requests? If not, then why is it not documented?

    Edit: Tried this out on N97.
    Last edited by strider2k; 2009-12-18 at 02:59. Reason: added device info

  2. #2
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    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

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    3

    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".

  4. #4
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    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

Similar Threads

  1. XMLHttpRequest problem
    By kogan_y in forum Symbian
    Replies: 3
    Last Post: 2009-12-18, 02:46
  2. XMLHTTPREQUEST can cache the content??? Need help
    By alicenan88 in forum Symbian
    Replies: 3
    Last Post: 2009-11-05, 12:02
  3. Make synchronous link (sco) in BT
    By Hlali in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-05-08, 15:43
  4. How to make Synchronous link(SCO) in Bluetooth
    By Hlali in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-05-01, 21:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •