File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "onChange question" Watch "onChange question" New topic

onChange question

Soft Music

Joined: Jan 17, 2002
Posts: 5
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
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

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.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: onChange question
It's not a secret anymore!