I have only run into this once before, when I was using images to be the
form submission buttons.

I use this in that case:

function onKeyPress ()
{
         var keycode;
         if (window.event)
                 keycode = window.event.keyCode;
         else if (e)
                 keycode = e.which;
         else
                 return true;
         if (keycode == 13)
         {
                 document.yourformname.submit();
                 return false
         }
         return true
}
document.>
HTH,

Ray
http://www.crystalvision.org

At 10:50 AM 3/30/2004, Morgan Senkal wrote:
>I've always assumed that on a form page with a submit button, hitting the
>enter key will automatically submit the form.  However, now I have run
>across a situation where it does not work; I have to manually click the
>submit button to submit the form, hitting enter does nothing.  Anyone ever
>run across this before?  Here is my form tag:
>
><cfform action="" method="POST" preservedata="Yes">
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to