Hi,

I just tried with a span element like:
<span class='no_style_keyboard_letter' letter='&#224;' title='$caption'> &#224; 
</span>
and a jQuery class name handler like:
  $('.no_style_keyboard_letter').click(function(event) {
    typeTextIntoFocusedElement($(this).attr("letter"));
  });
but it gives me the same behavior.

I also tried with a div element like
<div class='no_style_keyboard_letter' letter='&#224;' title='$caption'> &#224; 
</div>
but it gives me the same behavior.

I also tried with a li element like:
<ul>
<li class='no_style_keyboard_letter' letter='&#224;' title='$caption'> &#224; 
</li>
</ul>
but it gives me the same behavior.

Tough.

Stephane





________________________________
De : Loic Giraudel <[email protected]>
À : [email protected]
Envoyé le : Mar 7 décembre 2010, 12h 19min 21s
Objet : Re: [JSMentors] Not triggering an onchange handler


Hi,
Did you try to avoid using a link for your special characters but a simple 
span, 
div or li element ? I think those elements won't get the focus so onchange 
shouldn't be triggered.


On Tue, Dec 7, 2010 at 12:08, Stephane Eybert <[email protected]> wrote:

Hello,
>
>I have something puzzling with an input field at the page:
>
>http://www.thalasoft.com/elearning/exercise/55/page/206/subscription/
>
>If typing the word Millésime in the first question input field, then the answer
>is correct.
>
>But, let's say your computer keyboard does not offer the é letter, and so you
>use the é letter by clicking on it in the "Mini keyboard".
>
>Here is the sequence of user actions I would like to happen:
>
>I click in the input field, I then type in a few letters, like Mill, and  then 
I
>click on the displayed é letter above in the Mini keyboard. It should add this 
é
>letter in the input field so as to have Millé, and it should not do any  blur
>nor change, because I wish to finish typing in my word, so as to  have in the
>input field the word Millésime, and then I can click to the  next field,
>triggering the onchange and see the ajax correction.
>
>The problem then, is that the onchange handler is triggered when I click on the
>é letter above in the Mini keyboard.
>
>I would  like to add a letter in the input field but not trigger the onchange
>handler.
>
>Any one sees a solution ?
>
>Thanks !
>
>Stephane
>
>
>
>
>_______________________________________________
>JSMentors mailing list
>[email protected]
>http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com
>



      
_______________________________________________
JSMentors mailing list
[email protected]
http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com

Reply via email to