File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes onChange question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "onChange question" Watch "onChange question" New topic
Author

onChange question

Soft Music
Greenhorn

Joined: Jan 17, 2002
Posts: 5
Hi,
I have a text field, I would like to use onChange event handler for this text field to call a link to update the same page. so when my user begins typing the this text field, I can update this page dynamically? Can I do that?
Thanks very much,
Soft Music
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
"Soft Music"
your name deosn't agree with the javaranch guidelines. Please take a moment and re-register after reviewing the guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

This is a DHTML question more than anything else. What you don't want to do is to get the server involved -- imagine refreshing the page every time the user hits a key. Not appealing!
So you need to handle something like this entirely on the front end using JavaScript and DHTML. Depending on what browsers you need to support, this could get messy very quickly. I'd suggest posting this in the HTML and JavaScript forum.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: onChange question