Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Re Form Validation


Message #1 by "Pat Waddington" <paw@s...> on Sun, 11 Nov 2001 12:52:06 -0000
This is a multi-part message in MIME format.



------=_NextPart_000_0006_01C16AAF.AB0C0FC0

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



This is just a suggestion and I don't know if it would work because I 

haven't tried it:)



You should be able to trap the pressing of the Return key by using an

OnKeyPress event handler. You should check to see if it was the Return 

key

that was pressed (using the 'which' property I think (NS) or 'keycode' 

in IE), and if it is return

False from the event handler. This would cancel processing of the 

keystroke.



(The processing is browser-dependent)



I got this info from "Javascript The Definitive Guide" (O'Reilly) 3rd 

Edition Page 536.



HTH

Pat











  Return to Index