File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 63540

Use the abort() method of XMLHttpRequest.

[Asking smart questions] [About Bear] [Books by Bear]
subject: Cancelling Ajax request
It's not a secret anymore!