Results 1 to 2 of 2

Thread: How to cancel AJAX requests?

  1. #1
    Ext User 72's Avatar
    Join Date
    Apr 2007
    Location
    Czech republic, EU
    Posts
    152
    Vote Rating
    0
      0  

    Default How to cancel AJAX requests?

    Hey guys... if i simply call Ext.Ajax.abort(); it simply do nothing (but i am not really sure) ... how do i know that request was aborted (canceled)? I tried alert(Ext.Ajax.isLoading()); but answer is true. I dont know if i did something wrong but probably there can be some kind of delay. I just want to know the way how to get confirmation.

    And second question is, how to get list of all requests that are pending and best way to cancel them

    Thank You for any ideas...
    72

  2. #2
    Sencha User JeffHowden's Avatar
    Join Date
    Mar 2007
    Location
    Forest Grove, OR
    Posts
    1,038
    Vote Rating
    1
      0  

    Default

    Open firebug, perform the action that causes your request to be sent, then perform the action that causes your request to be aborted. Watch to see if the request is really aborted or not.

    You shouldn't have any running requests that you don't have a handle on.
    Jeff Howden
    Ext JS - Support Team Volunteer
    jeff@extjs.com

Posting Permissions

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