This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes onKeyUp event not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onKeyUp event not working " Watch "onKeyUp event not working " New topic

onKeyUp event not working

Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
Dear Friends,
In the following code the removeUnsupportedChar() javascript funtion not calling when onKeyUp event fires. Why is that?

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30136

It works on my machine (Safari on Mac) More specifically, I get the "hello' alert continually. Which looks like it is because onBlur is called too. Maybe textCounter() does something that prevents the code from continuing. I recommend checking your JavaScript console for errors.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
I'll check my other JS codes. Thanks
I agree. Here's the link:
subject: onKeyUp event not working
Similar Threads
Event handlers when using document.createElement()
onkeyup event in custom tags
Dynamically change textbox to textarea?
hide dropdown list
selectOneMenu and ajax support