Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.


In reply to Re: prevent pasting into a CGI textbox by Molt
in thread prevent pasting into a CGI textbox by nosbod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-03-29 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found