I got this from a another person, I didn't write it, but I can take a look
at it and get back to you as to what that does.  However, you wrote that
you 'dropped the code into the page - no change'.  Did you change the name
of the form from 'yourformname' to the actual form name in your app?

CFFORM wouldn't be the culprit - I am using it in the page that I stripped
that js from.

Can you direct me to a page online that you are trying to fix?

Ray

At 03:45 PM 3/30/2004, Morgan Senkal wrote:
>Ray, could I get a bit of description on what exactly the js below
>does?  specifically this bit:
>
>
>                  else if (e)
>                          keycode = e.which;
>                  else
>                          return true;
>
>
>I suspect it may have something to do with the fact that I'm using a
>cfform instead of a regular form tag, but that's a wild guess.
>
>I tossed the code below in my page, no change.
>
>
> >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:
> >>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to