Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User strider2k's Avatar
    Join Date
    Aug 2009
    Posts
    3
    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 isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833
    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 strider2k's Avatar
    Join Date
    Aug 2009
    Posts
    3
    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 isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833
    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 Web Runtime
    Replies: 3
    Last Post: 2009-12-18, 02:46
  2. XMLHTTPREQUEST can cache the content??? Need help
    By alicenan88 in forum Symbian C++
    Replies: 3
    Last Post: 2009-11-05, 12:02
  3. Sync XMLHttpRequest crashes the emulator.
    By ashishnm in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2007-12-07, 16:45
  4. Make synchronous link (sco) in BT
    By Hlali in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-05-08, 15:43
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved