Ajax Interceptor: Have someone clean for you
Date : 2008 02 12 Category : Tech & DevelopmentJosé 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:
PLAIN TEXT HTML:<div id="progress">
<img src="progressimgs/bigrotation2.gif" alt="Loading..." align="middle" hspace="10" /> Loading...
<input type="button" value="Cancel" onclick="AI_CancelRequest();" />
</div>
<script language="javascript" type="text/javascript" src="AJAXInterceptor_r.js"></script>
<script language="javascript" type="text/javascript" defer="defer">
AI_SetProgressDiv("progress");
</script>