PDA

View Full Version : Help with return disable



Batgary
02-08-2005, 07:10 PM
I have a HTML page on a UNIX server that calls a perl script as the form action. I have tried serveral scripts that disable the return key, but none of them work. From what I can tell, it has something to do with having the perl script as the action part of the form. I'm ready to take my frustrations out on the computer with a sledge hammer. :D HELP!

cr3ative
02-08-2005, 07:15 PM
Have you tried
http://www.dynamicdrive.com/dynamicindex16/disableenter.htm


cr3ative

Batgary
02-08-2005, 07:17 PM
That is one of the first scripts I tried. It worked great on a prior project, but not on this one.

cr3ative
02-08-2005, 07:31 PM
Hmm - have you got a link to the problematic page?
I can't think what would be going wrong.

cr3ative

Batgary
02-08-2005, 07:45 PM
I don't hae the link but here is the form statement and the function call:

<form name="Form1" method="post" action="/cgi-bin/delpeople.pl"
onSubmit="return validate(document.Form1)">

onkeypress="return handleEnter(this, event)">