Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cancelling Ajax request

 
Abdel Olakara
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64699
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the abort() method of XMLHttpRequest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic