Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: prevent pasting into a CGI textbox

by Molt (Chaplain)
on Jul 25, 2005 at 09:23 UTC ( #477736=note: print w/ replies, xml ) Need Help??


in reply to prevent pasting into a CGI textbox

I can't think of one, and to be honest I'm not sure why you'd want this.

If you're thinking that not being able to copy/paste anything that's meant to be moderately secure will stop them typing it in a seperate editor I think you're mistaken. People are used to how webbrowsers work, and used to being able to c'n'p into them.. stopping them on your site alone will simply mean they type it into their editor, find they can't c'n'p, so retype it from the 'in editor version' still on screen, and then get irritated at your system for not allowing them to do what they want, and are used to being able to do.

Less secure (Info on screen longer), and less usable than if you'd just obeyed the priniciple of least surprise and let them do what they're trying to.

As to how it'd be done if you had absolutely had to- forget Javascript. If there's a good enough reason that you'd need to disable my browsers basic functionality I have a good enough reason to disable Javascript when I'm using your system.

You'd be better looking at embedded technologies such as Java or Flash, which whilst I appreciate may get eyebrows raised from a lot of Perl-packin' monks does also sidestep the interface familiarity issue.. people aren't as used to being able to c'n'p into an embedded technology anyway.


Comment on Re: prevent pasting into a CGI textbox

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://477736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-09-19 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls