This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 textfield onChange not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts2 textfield onChange not working properly" Watch "Struts2 textfield onChange not working properly" New topic
Author

Struts2 textfield onChange not working properly

Pooja Shah
Greenhorn

Joined: Jan 05, 2009
Posts: 13
I have a textfield on whose onChange event i display an alert.
The alert does get displayed but not immediately after the edit in the textfield.
After editing, if i click on the page, or tab to the next field, it gets displayed.
Is this how it is supposed to be? More like onBlur...
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9191
    
    2

If you want to call a javascript method after any key press, then use onkeypress event...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts2 textfield onChange not working properly
 
Similar Threads
how to open xml file into html page
Alerts and textbox losing focus
onchange event problem in ice:inputFile tag
OnChange not firing
Javascript and PHP