This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 63202
    
  69

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: http://aspose.com/file-tools
 
subject: AJAX and text areas
 
It's not a secret anymore!