OK, preventing the event from being fired. Actually you don't care
about its being fired (and it WILL be), but about its being DETECTED.
Depends on your browser. If you don't have to support IE, you can
capture that event and censor it when appropriate.
You likely DO have to support IE, however, so the question is more about
"who's paying attention?". If it's done at a higher level in the DOM
(some ancestor element, perhaps document itself), then just listen for
it closer to the source field (perhaps the field itself) and censor its
bubbling when appropriate (jQuery would have your function return false
to do this; the W3C standard, and Prototype's preferred way as well, is
to call the event object's stopPropagation() method; etc.)
If you already have event listeners in place straight on the field,
well, I don't know of a way to prevent those from getting triggered on
field change (which, as a reminder, only happens on blur for text fields).
'HTH
--
Christophe Porteneuve
[email protected]
_______________________________________________
JSMentors mailing list
[email protected]
http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com