Here is my problem:
I have a textbox, for a password, and I want the user to be able to hit enter and it would act just like clicking on the "enter" button.
When I do this I receive the following error:
"Type mismatch: 'btnLogin_onclick'"
When I comment out that line and leave the msgbox, all works fine....Any ideas would be gratefull,
Thanks...
Code below
<code>
<INPUT type="password" id=txtPass name=txtPass size="12" onkeydown="buttonPress();">
<script LANGUAGE="vbscript">
sub buttonPress()
dim i
i = window.event.keyCode
if i = 13 then
call btnLogin_onclick
'msgbox "TESTING"
end if
End sub
</script>
<script ID="serverEventHandlersVBS" LANGUAGE="vbscript" RUNAT="Server">
Sub btnLogin_onclick()
rsAccess.open
If rsAccess.EOF and rsAccess.BOF Then
noAuth = "failed"
Else
Session("Auth"
Session("User"
End If
If rsCases.isOpen() then
rsCases.close
rsCases.open
end if
End Sub
</code>