File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Capturing "Enter Key" Value in Javascript

 
Gurpreet Sidhu
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i press Enetr key in my Text Area Field . Its passing the enter key value to database. I want to capture that value and change it to " " space. How can i capture my "Enter Key " value in Javascript?/
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be doing it on the server and not the client. You need a basic regular expression replaceAll("\\n"," ");

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic