AjaxWrapper is a jquery module for simple standardized usage of ajax in a website. It is using a iframe fallback for file uploads.
http://www.marvinkerkhoff.de/ajaxwrapper/examples/index.html
- Include the AjaxWrapper source file
- Add the event handler for submit and click methods. It is not necessary which class you use for the event handling. But you should use the on method to get everything work fine.s
- Add class="ajax" to the a-tags or form-tags
- Use jquery selectors in the target attributes for a-tags or form-tags. The target should be an existing div with the id or class.
- That's it.
$(document).ready(function() {
$('body').on("click", "a.ajax", function() {
return $(this).ajaxwrapper();
});
$('body').on("submit", "form.ajax", function() {
return $(this).ajaxwrapper();
});
});