[Opensource] javascript bug on login page?

larry hamel expresso at codeguild.com
Fri Dec 6 14:11:52 PST 2002


oh, thanks for the explanation!

Larry

At 11:30 AM 12/6/2002, Michael Rimov wrote:
>At 12:31 PM 11/27/2002 -0800, you wrote:
>>I was typing in the password and then hitting the return key, rather than clicking on the login button.  The return key gives the *impression* of submitting the form, but something goes wrong, and the login is not accepted. It must be a JavaScript bug.
>>
>>So when the next person complains about this login page, tell them to click the button instead of hitting the return key.
>>
>>You can replicate this on http://www.jcorporate.com/Login.do (I tested on winxp using IE 6 and Netscape 6.2) by first trying the return key after typing in the password, and then try the same login info, but hit the login button instead.
>
>Larry,
>
>I wanted to pass on some background information as to what seems to be happening, and why enter doesn't want to work unless there is javascript embedded.
>
>Login Page actually has TWO forms:
>
>Form 1:  The icons at the top of the page that include things like 'logout', 'update registration settings', 'register', 'change password', etc.
>
>Form 2:  User name / password
>
>The problem is that by default, if my focus is in form 2 and I hit enter, the web browsers [at least IE] somehow consider it a 'submit' from Form 1 (!!).  Thus the weirdness you've been experiencing.
>
>So I had to introduce javascript for the UserName and Password boxes to capture the return key, and submit the appropriate form.
>
>Now if somebody has a better generic workaround, I'd love to hear it.  But I'd like for people to know what's going on here.
>
>HTH!
>                                                -Mike
>
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




More information about the Opensource mailing list