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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chinchukrishna
    New Member
    • Jan 2010
    • 2

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

    I have sent the contents of textarea by attatching the value as url.when i access it by using request.getPara meter i lost the new line.What is the solution?
  • larztheloser
    New Member
    • Jan 2010
    • 86

    #2
    request.getPara meter is not javascript code. It's JSP code. As I've told you before in this post.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      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).

      Comment

      Working...