This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 63349

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] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: AJAX and text areas
It's not a secret anymore!