my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Cancelling Ajax request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Cancelling Ajax request" Watch "Cancelling Ajax request" New topic

Cancelling Ajax request

Abdel Olakara

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
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63346

Use the abort() method of XMLHttpRequest.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Cancelling Ajax request
It's not a secret anymore!