Motionbox EventHandler Focus and Blur Bubbling Update
10.31.08 - 12:38pm
The Motionbox EventHandler ( http://github.com/tobowers/motionbox-eventhandler/tree/master ) now supports focus and blur bubbling. Based on this technique. Internet Explorer is supported too (behind the scenes it uses focusin and focusout, but you don't need to know that).
HTML:
JavaScript:
// This now works:
MBX.EventHandler.subscribe(".input_field", "blur", function (evt) { //do sometthing });
MBX.EventHandler.subscribe(".input_field", "blur", function (evt) { //do sometthing });
// Delegation on the form also works
MBX.EventHandler.subscribe("#formy", "focus", function (evt) { //do something });
Speak Your Peace