You are here:About>Computing & Technology>JavaScript
About.comJavaScript

Stephen's JavaScript Blog

From Stephen Chapman,
Your Guide to JavaScript.
FREE Newsletter. Sign Up Now!

Aborting Ajax

Sometimes when waiting for an Ajax response the situation changes so that you no longer need it.

Since Ajax is normally run asynchronously where we don't wait for the response to come back, circumstances may change so that the response is no longer required and we want to abort the request in order to make another more relevant one. In this twelfth Ajax tutorial we look at how to abort an outstanding Ajax request so that the browser can initiate a replacement request using the same code without getting confused between the original and replacement responses.

Aborting Ajax
Wednesday May 7, 2008 | comments (1)

Email to a Friend

Display Latest Headlines | | | Read Archives

powered by WordPress

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.