Thanks for your input... however I cannot for the life of me get it to work!!! This
is how I have coded it...
<SCRIPT LANGUAGE="JavaScript">
<!--
function EnterKey(evt)
{
if (evt.which == 13)
{
document.pgUnitGeneral1.elements["btnOpen_onWebEvent(btnOpen)"].click();
}
}
// --></SCRIPT>
</head><body bgcolor="#C0C0C0">
<p>[[SPIDERPAGE NAME=pgUnitGeneral1]] </p>
<INPUT TYPE=SUBMIT NAME="btnOpen_onWebEvent(btnOpen)" VALUE="Open"> (I have also
tried it with the **btnOpen** field as well)
more fields here....
**SPIDERSESSION** [[/SPIDERPAGE]] </p>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (navigator.appName.indexOf("Explorer")<0) {
window.captureEvents(Event.KEYPRESS);
}
window.onkeypress= EnterKey;
// --></SCRIPT>
</body></html>
Thanks in advance for your help!
Jarett
"Azamat Khalilov" <[EMAIL PROTECTED]> wrote:
>
>Following example page works in both Explorer and Netscape.
>It contains elements for enter username [TAB] password [Enter]
>Hot key is [Enter]. But you can try anything else.
>
><html>
><head>
> <title>Dobpo</title>
><SCRIPT LANGUAGE="JavaScript">
><!--
>
>function EnterKey(evt) {
> if (evt.which == 13) {
> document.pgaDobroStart.elements[2].click();
> }
>}
>
>// -->
></SCRIPT>
></head>
><body text="#000000" bgcolor="#FFFFFF" link="#008080" vlink="#008080" alink="#FF0000"
>background="/NetDynamics/DobroImg/about_bgrnd.gif">
>
>[[SPIDERPAGE NAME=pgaDobroStart]]
>
><DIV ALIGN=center>
><table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" >
><tr>
> <td align=right><b>User: </b></td>
> <td>**tbUser**</td>
></tr>
>
><tr>
> <td align=right><b>Password: </b></td>
> <td>**tbPwd**</td>
></tr>
>
><tr>
> <td>�</td>
> <td>**btOK**</td>
></tr>
></table>
></DIV>
>
>**SPIDERSESSION**
>[[/SPIDERPAGE]]
>
><SCRIPT LANGUAGE="JavaScript">
><!--
>
>if (navigator.appName.indexOf("Explorer")<0) {
> window.captureEvents(Event.KEYPRESS);
>}
>window.onkeypress= EnterKey;
>
>// -->
></SCRIPT>
>
></body>
></html>
>
>
>"Jarett Blonde" <[EMAIL PROTECTED]> wrote:
>>
>>I have a text box and an Open button. Is there a way that I can force the open
>button code to activate when you press enter inside the text box????
>>thanks
>>
>>Jarett
>>[EMAIL PROTECTED]
>
_________________________________________________________________________
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]