Atrix  -  thanks for the script.  I've been wanting to do something
along these lines (for some other problems) but haven't had time to find
& figure out the javascript.

Thanks!!     j



> -----Original Message-----
> From: Atrix Wolfe [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 06, 2003 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Witango-Talk: User Woes
> 
> 
> if you find out that pressing enter at the form instead of 
> clicking the correct button is causing errors, i use the 
> following code to take care of this situation.  This code 
> makes it so whne you hit enter, it wont submit the form, but 
> still allows you to hit enter in <textarea> fields to enter a 
> newline.  It could be easily modified to make it when the 
> user hit enter, it sets the form's action to the correct 
> login action and submits the form.
> 
> <SCRIPT language=javascript>
> 
> <!--
> 
> var nav = window.Event ? true : false;
> 
> if (nav)
> 
> {
> 
> window.captureEvents(Event.KEYDOWN);
> 
> window.onkeydown = NetscapeEventHandler_KeyDown;
> 
> }
> 
> else
> 
> {
> 
> document.onkeydown = MicrosoftEventHandler_KeyDown;
> 
> }
> 
> function NetscapeEventHandler_KeyDown(e)
> 
> {
> 
> if (e.which == 13 && e.target.type != 'textarea' && e.target.type !=
> 'submit')
> 
> {
> 
> return false;
> 
> }
> 
> else
> 
> return true;
> 
> }
> 
> function MicrosoftEventHandler_KeyDown()
> 
> {
> 
> if (event.keyCode == 13 && event.srcElement.type != 
> 'textarea' && event.srcElement.type != 'submit')
> 
> {
> 
> return false;
> 
> }
> 
> else
> 
> return true;
> 
> }
> 
> function ValidateForm()
> 
> -->
> 
> </script>
> 
> 
> Hope this helps,
> Atrix
> 
> ----- Original Message -----
> From: "Wilcox, Jamileh" <[EMAIL PROTECTED]>
> To: "Witango-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, February 06, 2003 2:12 PM
> Subject: Witango-Talk: User Woes
> 
> 
> Another oddball case (it's one of THOSE days).
> 
> I've got a user (PC technician) who swears he gets an 
> "invalid login" message when he puts his username into this 
> application, even at the 'forgot password' prompt.  I can put 
> in his username and password and get logged in just fine; the 
> app mailed him a new password when I tried the 'forgot 
> password' with his username.
> 
> He also swears that he's cutting and pasting the username & 
> reset password directly from the email, which is what I'm 
> doing.  Of course, he was typing the info in when I was on 
> the phone with him.
> 
> I've been on the phone with him, and he's been very helpful.  
> He thinks maybe it's named pipes in SQL, or cookies in his 
> browser, or because the browser is sending his username as a 
> token to the server, or ... (he's learning Cold Fusion, can you tell?)
> 
> Can anyone think of *any* possibility that I should check 
> before I go across campus to his office and cut & paste the 
> %#$^~! fields in myself? I'm not very familiar with the logs, 
> but I don't see anything in them that would even touch on this.
> 
> Thanks.     j
> 
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to 
> [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
> 
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to 
> [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
> 

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to