nette/nette — pull request #1155 by jaroslav-kubicek (2013-07-02 20:05:06+00:00)
Title: netteForms.js now dispatch several custom events

Javascript for Nette forms dispatch custom events which we can handle and process.
Solution is based on ECMA3. IE8 and old webkit will silently ignore them.

example using jQuery:

$(document).bind(Nette.EventType.INVALID_CONTROL, function(e) {
e.preventDefault(); alert(e.originalEvent.detail.message + ' - my custom handler');
});