It's not a secret anymore!*
The moose likes Struts and the fly likes How to eliminate copy & Paste in textarea in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

How to eliminate copy & Paste in textarea in javascript

srinivas rao
Greenhorn

Joined: Nov 21, 2007
Posts: 5
Kindly, helpe me in this regard,

I have a textarea and should accept only alphanumeric characters upto 500 characters and if we do copy and paste more than 500 characters it should take 500 characters and remaining should eliminate.

kindly, provide me the code how to perform this
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
This is not really a Struts question. I know that there are some pages in my application that use JavaScript to limit the length. I suggest that you jump over to your favorite search engine and search for "limit textarea size".

- Brent
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to eliminate copy & Paste in textarea in javascript
 
Similar Threads
cut copy and paste functions
Implementation of Copy/Paste in a component which is similar to textfield
How to eliminate copy and paste using javascript
javascript:Restricting the user to paste in textbox
JTextArea