GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX and text areas" Watch "AJAX and text areas" New topic
Author

AJAX and text areas

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi,

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
-mark

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

Joined: Jan 10, 2002
Posts: 61310
    
  66

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]
 
GeeCON Prague 2014
 
subject: AJAX and text areas