Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] [Javascript] enabling/disabling buttons: Japanese text and enter buttons
- Date: Fri, 25 Feb 2011 00:23:42 +0900
- From: Dave M G <dave@example.com>
- Subject: [tlug] [Javascript] enabling/disabling buttons: Japanese text and enter buttons
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
TLUG, I have a button on a page that is enabled whenever a text box in an HTML form is changed. As the user types, I run some checks on the text, and if the text is good, the button is enabled. If the text is bad, the button is disabled. Pretty standard stuff. The function to call the check is executed by onKeyup() and onChange() functions attached to the text box. For the most part, it works fine. However, I've discovered two exceptions. 1. When entering Japanese text (I'm testing on Ubuntu/Firefox with Anthy/UIM input), no amount of typing activates the button. If I switch back to English, type in at least one character, then it will check and validate the Japanese text. It seems as though Japanese input does not trigger onKeyup() or onChange() events. Anyone have experience with this kind of thing? 2. When the button is disabled, if I press "enter" on the keyboard, the button's "onclick" action gets triggered. That shouldn't happen, should it? I'm hoping these are just little things I'm missing. Can anyone set me straight? -- Dave M G
- Follow-Ups:
- [tlug] [Javascript] enabling/disabling buttons: Japanese text and enter buttons
- From: Stephen J. Turnbull
- Re: [tlug] [Javascript] enabling/disabling buttons: Japanese text and enter buttons
- From: Shawn Brown
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Do you whitelist or blacklist utf-8?
- Next by Date: [tlug] I'll have to pay someone to do this Javascript (small job offer)
- Previous by thread: [tlug] -tomorrow- [announcement] nomikai February 25 (Friday)
- Next by thread: [tlug] [Javascript] enabling/disabling buttons: Japanese text and enter buttons
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links