Results 1 to 4 of 4

Thread: Parallel requests with Ext.Ajax.request

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    India
    Posts
    87

    Default Parallel requests with Ext.Ajax.request

    Hi,
    I would like to know the mechanism to fire parallel Ajax requests in ExtJS.
    Using a
    Code:
    $.when().then()
    enables the mechanism in jQuery.
    Also, if any other approach is there, please suggest.

    Thanks,
    Ronit
    Thanks,
    Ronz

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Answers
    759

    Default

    They aren't parallel requests, it's basically just syntax sugar for callbacks.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    India
    Posts
    87

    Default

    But, thing is, within when(), I can put multiple ajax requests which are fired simultaneously, and the time taken would be the maximum time taken by any of the requests.
    How do I handle the same in ExtJS... (without using jQuery syntax).
    Thanks,
    Ronz

  4. #4
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    72
    Answers
    6

    Default

    This feature doesn't exist in Ext JS. However, someone implemented promises/deferreds and a new Ajax singleton that uses them.

    Ext.ux.Deferred
    Ext.ux.Ajax

    I've never used these myself so I don't know if it covers your use cases, but it's a start.

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
  •