The reason why it does not work is because ND send more then the submit form.
It also send the name of the button which is NAME="btLogin_onWebEvent(btLogin)"
to make it work you have to issue
document.all.LogOnMain.click();
This works only in IE if you have an image button.
It will work for both I think if it is a regular button.
the following is the login button
<INPUT TYPE=IMAGE NAME="btLogin_onWebEvent(btLogin)" VALUE="."
SRC="/pwbrwb/images/LogOnMainOff.gif"
ALIGN=TOP border=0 width="115" height="24" alt="Login" id="LogOnMain"
onMouseOver
= "bOn(this)" onMouseOut = "bOff(this)"></td></tr>
"Don Armstrong" <[EMAIL PROTECTED]> wrote:
>
>I am looking for a simple way to monitor the user's keystrokes in a password
>field. If they press enter (ASCII 13), I would like to submit the form. This is
>how I implemented the feature using JavaScript, but it does not work in a
>NetDynamics 4.0 page.
>
><script language="JavaScript">
>function EnterKey(evt)
> {
> var theKey;
> theKey = evt.which;
> if (theKey == 13)
> {
> document.Logon.submit();
> }
>}
></SCRIPT>
>
><INPUT TYPE="password" NAME="password" onKeyPress="EnterKey(event);"
>value="" MAXLENGTH=10 SIZE=10>
>
>
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]