Thanks Duncan. I do have the Javascript Bible and find it very useful.
Unfortunately we do not have a copy at work.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 12:54 PM
Subject: Re: [ cf-dev ] OT: Javascript catching enter key press
>
> lifted from the Javascript Bible:
>
> <input type="text" name="whatever" onKeyPress="handleKey(event,
> this.form)">
>
> function handleKey(evt, form)
> {
> // i guess here you take a look at the evt parameter to work out
wht's
> happening.
> // values like evt.data, evt.which
> }
>
>
> Duncan Cumming
> IT Manager
>
> http://www.alienationdesign.co.uk
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
>
> Creative solutions in a technical world
>
> ----------------------------------------------------------------------
> Get your domain names online from:
> http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
>
>
>
> "Giles
> Roadnight" To:
<[EMAIL PROTECTED]>
> <giles@roadni cc:
> ght.name> Subject: [ cf-dev ] OT:
Javascript catching enter key press
>
> 01/22/03
> 12:48 PM
> Please
> respond to
> dev
>
>
>
>
>
> Hi
>
> I have searched for a solution to this but all of htem seem only to deal
> with key presses for the entire document.
>
> I want to run a function when the enter key is pressed when typing in a
> text
> box.
> I know I need to use onKeyPress() but then how do I send the key that has
> been pressed to the function?
>
> Thanks
>
> Giles
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]