Results 1 to 3 of 3

Thread: Load event fires prematurely for long requests

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    47
    Answers
    3
    Vote Rating
    0
      0  

    Default Unanswered: Load event fires prematurely for long requests

    Hello,

    I have a basic list that uses a store with ajax proxy setup to load json data. The timeout is set to 120000.

    Everything works just fine on Chrome and Safari on my desktop, running against localhost. Depending on what the user enters, responses take anywhere from 10 seconds to 75 seconds, typically. Irrespective of how long it takes, things work just fine on my desktop.

    On my iPhone (iOS 5) running against the server on my desktop, things work just fine for requests less then 12 or 15 seconds. Anything longer causes the "load" event to fire early, with data not loaded.

    Any ideas on what's going on? Has anyone else experienced this problem? I have not had a timeout problem. I'm having to debug things on the safari debug console on an iPhone - not fun.

    Thanks,
    Mohammad

  2. #2
    Sencha User grgur's Avatar
    Join Date
    Aug 2007
    Location
    Split, Croatia
    Posts
    155
    Answers
    10
    Vote Rating
    26
      0  

    Default

    I wonder if you receive any data back when the load event fires.

    Instead of debugging on the device, try using remote debugging - much easier
    <div style="float: left; width: 70px;">http://appac.us/mcs.png</div><div style="float: left; height: 100px;">Grgur Grisogono
    Ext JS in Action SE co-author
    Exercising awesomeness at Modus Create - Official Sencha Partner

    Get in touch for Sencha Touch Training
    @ggrgur</div><div style="clear:both;"></div>

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    47
    Answers
    3
    Vote Rating
    0
      0  

    Default

    Hey Grgur,

    Thanks for pointing out better debugging options. Hopefully it'll make my life easier.

    As for whether any data is returned, the answer is no. I get no data back at all. Another strange thing is that after repeated tests, I've noticed that the timeout happens at around 12.8 seconds, irrespective of the original request. I have no idea if there is anything special about 12.8 seconds. Any ideas?

    Thanks.

    Mohammad.

Tags for this Thread

Posting Permissions

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