Tuesday, February 12th, 2008

Ajax Interceptor: Have someone clean for you

Category: JavaScript, Library

José Manuel Alarcón Aguín has written AJAXInterceptor, a JavaScript library that you add which takes over form submissions and makes them happen asynchronously with XHR.

You can also control progress indicators and request cancelation via code such as:

  1. <div id="progress">
  2.   <img src="progressimgs/bigrotation2.gif" alt="Loading..." align="middle" hspace="10" /> Loading...
  3.   <input type="button" value="Cancel" onclick="AI_CancelRequest();" />
  4. </div>
  5. <script language="javascript" type="text/javascript" src="AJAXInterceptor_r.js"></script>
  6. <script language="javascript" type="text/javascript" defer="defer">
  7.   AI_SetProgressDiv("progress");
  8. </script>

Posted by Dion Almaer at 6:29 am
Comment here

+++--
3 rating from 29 votes

Comments Here »

Comments feed TrackBack URI

Leave a comment

You must be logged in to post a comment.