File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to eliminate copy and paste using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to eliminate copy and paste using javascript" Watch "How to eliminate copy and paste using javascript" New topic
Author

How to eliminate copy and paste using 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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56157
    
  13

"Srinivas", please check your private messages immediately.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
with onchange call a function that uses substring if it is greater than 500 characters.

Eric
srinivas rao
Greenhorn

Joined: Nov 21, 2007
Posts: 5
Still i couldn't able to get rid of that problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56157
    
  13

"Srinivas", you chosen to ignore my private message regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to eliminate copy and paste using javascript
 
Similar Threads
Why we need datasource
Where to put war file
How to eliminate copy & Paste in textarea in javascript
Implementation of Copy/Paste in a component which is similar to textfield
JSP Encoding