The moose likes HTML, CSS and JavaScript and the fly likes Cancelling Ajax request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Cancelling Ajax request" Watch "Cancelling Ajax request" New topic
Author

Cancelling Ajax request

Abdel Olakara
Greenhorn

Joined: Jan 10, 2007
Posts: 6
Hi everybody,
I have a complex page which works like a portal. There are three "boxes" which are filled with latest data using AJAX. I have also provided a expansion button to these boxes so that a user can select to view only one particular box and all other are hidden off. My trouble is I want to cancel the all other AJAX requests..
Hope I am clear with the doubt, Thanks in advance.
-- Abdel Olakara
http://olakara.googlepages.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56168
    
  13

Use the abort() method of XMLHttpRequest.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cancelling Ajax request
 
Similar Threads
Fast Ajax code Implementation
Ajax Problem : passing html:select element in returnstring
Ajax drop down
Dynamic Combo Box
DWR or jquery