By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

How to get the contents of the text area without lossing new line character in ajax ?

P: 2
I have sent the contents of textarea by attatching the value as url.when i access it by using request.getParameter i lost the new line.What is the solution?
Jan 27 '10 #1
Share this Question
Share on Google+
2 Replies


P: 86
request.getParameter is not javascript code. It's JSP code. As I've told you before in this post.
Jan 27 '10 #2

acoder
Expert Mod 15k+
P: 16,027
I think the confusion comes from the term Ajax. Just because one part is JavaScript doesn't necessarily mean that the problem is there. I think you need to post rather than use GET. You will also need to convert the newlines to <br> when displaying on the screen (i.e. not back in the textarea).
Feb 1 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.