1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    34
    Vote Rating
    0
    sacha is on a distinguished road

      0  

    Default Does Ext.Ajax.timeout work for small values?

    Does Ext.Ajax.timeout work for small values?


    I'm trying to provoke an AJAX timeout to check that my error handling is correctly set up.

    I've set Ext.Ajax.timeout to various values (e.g. 2, 2000) but my AJAX calls (which I've artificially made take a long time, ~20s) happily continue to succeed.

    I've verified that Ext.Ajax.timeout really is set at the point of the AJAX call. I'm using an up-to-date Firefox and ExtJS 3.2.1. I'm using ext adapter (my forum searches on this topic sometimes point the finger at the jquery adapter).

    Should I expect Ext.Ajax.timeout work reliably, or are there limitations not mentioned in the docs?

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Posts
    34
    Vote Rating
    0
    sacha is on a distinguished road

      0  

    Default


    Ah never mind - it appears there are other 30s defaults stashed away, e.g. on a form submission, the form appears to have its own 30s default, which is overriding the global default.

  3. #3
    Sencha User
    Join Date
    Sep 2009
    Posts
    34
    Vote Rating
    0
    sacha is on a distinguished road

      0  

    Default


    These are the separate timeouts I've found:

    Code:
            Ext.Ajax.timeout (milliseconds)
            Ext.data.Connection.prototype.timeout (milliseconds)
            Ext.form.BasicForm.prototype.timeout (seconds)
    (If any devs stumble upon this post - I'd propose that the latter two use the first unless explicitly set.)

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    1. Ext.Ajax is an Ext.data.Connection instance, so those 2 timeouts are basically the same.

    2. You forgot:
    Code:
    Ext.Updater.defaults.timeout (seconds)

Similar Threads

  1. Ext.Ajax.timeout issue
    By sriharshaparigi in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 30 Mar 2010, 4:54 AM
  2. Replies: 1
    Last Post: 27 Oct 2009, 9:02 PM
  3. Is it safe to use Ext.fly in Ajax/timeout completion routines?
    By fjanon in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 15 Aug 2007, 1:26 AM

Thread Participants: 1

Tags for this Thread