Posted By

dom111 on 08/13/08


Tagged

form ajax javascript forms submit mootools onsubmit


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

esquareda
stephenns
umang_nine


submitEvents - Javascript form submission handler


 / Published in: JavaScript
 

URL: http://www.dom111.co.uk/blog/coding/submitevents-javascript-form-submission-handler/20

Requires Mootools 1.2<br/> http://mootools.net/download

Based on the mootools javascript framework a re-usable class for easily implementing an array of on submit events.

  • Confirmation - Provides an Ok, Cancel input box before proceeding further
  • Submit Button - Disable and change the text on a submit button
  • Information Div - Display a div that lets the user know something is happening
  • Undo - Undo the changes (re-enable a previously disabled submit button, change the information div) that have been carried out by the class
  • AJAX - Submit the form using AJAX instead of the ‘old fashioned’ way

This work is released under the creative commons share alike license.

Requires Mootools 1.2<br/> http://mootools.net/download

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: dom111 on August 14, 2008

There were some problems in IE6 running this class, script has been updated to work properly now...

You need to login to post a comment.