Activate your free membership today | Log-in

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:

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

Posted by Dion Almaer at 6:29 am
Comment here

+++--
3 rating from 24 votes

Comments Here »

Comments feed TrackBack URI

Leave a comment

You must be logged in to post a comment.