On Thursday 22 Apr 2004 03:04 am, ChunshenLi wrote:
js keycode etc. is fine it works while with Netscape (my version 6.2.1) it
won't.
However there is good key capture behaviour in recent Mozilla's, and of course
the usual gaggle of cross-platform libraries to make adding events easy
across
Thanks for the update.So, versions would be taken into consideration as well for ua detection.
On Thursday 22 Apr 2004 03:04 am, ChunshenLi wrote:
js keycode etc. is fine it works while with Netscape (my version 6.2.1) it
won't.
However there is good key capture behaviour in recent Mozilla's,
Your point is excellent.If I may I would add some detail here, with IE6.0 js keycode etc. is fine it works while with Netscape (my version 6.2.1) it won't.But it's easy for developer to determine a browser as to decide what to do.
That is up to the user agent. Some do, some don't.
Jochem
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)
{
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
)) {
DoSearchBoxSubmit();
return false;
}
return true;
}
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:03 PM
To: CF-Talk
Subject: Re: Enter key not working to submit?
Morgan Senkal wrote:
I've always assumed that on a form page
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
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
Yes I changed the form name. :-)
You can take a look at the page at this URL:
http://www.transmission.bpa.gov/HOFTest.cfm
Threw that out there just for testing purposes, since this is an internal only application...
I got this from a another person, I didn't write it, but I can take a look
at
: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:03 PM
To: CF-Talk
Subject: Re: Enter key not working to submit?
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
10 matches
Mail list logo