File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes AJAX and text areas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX and text areas" Watch "AJAX and text areas" New topic

AJAX and text areas

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60

I have 2 select menus in jsp and 1 text area.
Based on the selection of the first menu, I am getting some values in the text area (I am using AJAX).
Now the problem is I am trying to add some more values based on the second menu, the values in the text area are replacing by newones.(using AJAX)

How do I make all the values available in text area.
please suggest me a way to do it.
Thanks in advance

[ July 01, 2008: Message edited by: Bear Bibeault ]
[ July 01, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63544

The fact that this is in a JSP is moot.

If you are over-writing the value of the text area at the end of each Ajax call, then yes, the values will over-write each other.

If you want the values appended, just be sure to do that.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: AJAX and text areas
jQuery in Action, 3rd edition