Hi Christophe, Thanks for your comment, I must say I tried to have some return false in the method as
$('.no_style_keyboard_letter').click(function(event) { typeTextIntoFocusedElement($(this).attr("letter")); return false; }); but no luck. Same with <a href="javascript:typeTextIntoFocusedElement('à');return false;" title='$caption'> à </a> I admit I shot in the dark here. I own all the code so I could re-architect it if needed. I shall keep trying. Thanks again. Stephane ----- Message d'origine ---- De : Christophe Porteneuve <t...@tddsworld.com> À : jsmentors@jsmentors.com Envoyé le : Mar 7 décembre 2010, 15h 38min 14s Objet : Re: [JSMentors] Re : Re : Not triggering an onchange handler 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 t...@tddsworld.com _______________________________________________ JSMentors mailing list JSMentors@jsmentors.com http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com _______________________________________________ JSMentors mailing list JSMentors@jsmentors.com http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com