ClassBehaviours, the javascript framework based on class-name parsing

classBehaviours

"ClassBehaviours" is a framework for simple scripted DHTML behaviours which are easily applied through the class-names in an HTML document.

"ClassBehaviours" will scan every html-element in the page for certain keywords in the classnames and apply scripted behaviour accordingly.

"ClassBehaviours" are formatted as jQuery plugins and can be implemented without writing a single line of code..

disableAfterSubmit: Disable All Buttons on a Page to Avoid Double Submits

When submitting a comment to a blog or uploading files, clicking twice can have undesirable effects.

Events are added to all forms, links and buttons inside the "disableAfterSubmit" class-name, that disable the clicks after the first one.

Link

Since the change cannot be reversed easily, this method is not to be used on AJAX functionality.

Required Files


Comments on this Article


Add your Comment:
bunny
ClassBehaviours Index
Name
jQuery Plugin
Description
Updated
Disable All Buttons on a Page to Avoid Double Submits jquery.classbehaviours.disableAfterSubmit

When submitting a comment to a blog or uploading files, clicking twice can have undesirable effects.

2009-12-07 09:21
Implement Google Event Tracker jquery.classbehaviours.googleEventTracker

Use a single class-name to implement all the Google Event Tracker event handlers.

2009-11-17 16:37
Layout a Form as Tabular Data -

Lorem ipsum dolor sit amet.

2009-03-24 15:04
Layout a Form Using a Grid -

Lorem ipsum dolor sit amet.

2009-03-24 15:04
Paging List jquery.classbehaviours.pageList

Lorem ipsum dolor sit amet.

2010-03-16 09:32
A Canvas Based Sprites Display jquery.classbehaviours.spriteCanvas

Lorem ipsum dolor sit amet.

2010-03-25 08:41