[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-11 Thread PaulM
yes, originally I meant a textbox or a textarea!!! On Jul 6, 4:24 am, Gordon [EMAIL PROTECTED] wrote: Unless you have a very good reason to do so you really should not be using javascript to deliberately break behaviour that users expect to work. I can't speak for anyone else but I

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-06 Thread Gordon
Unless you have a very good reason to do so you really should not be using javascript to deliberately break behaviour that users expect to work. I can't speak for anyone else but I know precicely how long I would stay on a site that prevented me from using cut and paste in forms. On Jul 4,

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread PaulM
thats silly. I want them to use the checkbox to put stuff in, but not via copy and paste On Jul 4, 5:58 pm, Terry B [EMAIL PROTECTED] wrote: disable the text box On Jul 4, 5:25 pm, PaulM [EMAIL PROTECTED] wrote: how can I prohibit from users pasting content into text boxes?

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread Andy Matthews
keys. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of PaulM Sent: Thursday, July 05, 2007 2:26 PM To: jQuery (English) Subject: [jQuery] Re: how can I prohibit from users pasting content into text boxes? thats silly. I want them to use

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread Jörn Zaefferer
PaulM wrote: how can I prohibit from users pasting content into text boxes? Something along these lines: if ($.browser.msie) this.onpaste= function(){setTimeout(checkVal,0);}; else if ($.browser.mozilla) this.addEventListener('input',checkVal,false); -- Jörn Zaefferer

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread Shelane
So how does your checkbox function work? When a box is checked the value gets put in a text box? What is this purpose? You can display the value instead in a div. The checked values will get passed when a form is submitted so it's not necessary to also have them in a textbox if that textbox is

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread Josh Bush
That looks oddly familiar... :) I'm fairly certain that there isn't a cross-browser way to detect pastes. The sample Jörn posted will only catch IE and Mozilla. Josh On Jul 5, 3:35 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: PaulM wrote: how can I prohibit from users pasting content into

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread Glen Lipka
http://groups.google.com/group/mozilla.dev.web-development/browse_thread/thread/a499932e8be4f918 or http://www.forum4designers.com/message197102.html Maybe one of these help? Glen On 7/5/07, Josh Bush [EMAIL PROTECTED] wrote: That looks oddly familiar... :) I'm fairly certain that there

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-04 Thread Terry B
disable the text box On Jul 4, 5:25 pm, PaulM [EMAIL PROTECTED] wrote: how can I prohibit from users pasting content into text boxes?