Reply to trap keystrokes

Your name:

Reply:


Posted by David McDivitt on 05/17/06 22:21

Another fellow here must modify an application. On the web page, pressing
the enter key causes the form to submit. What users want is to remove enter
key functionality from within a textarea and cause the enter key to submit
the form, AND cause the F6 key to do what the enter key used to do inside
the text area. The idea I suggested is to trap keystrokes in the text area,
If the enter key is pressed, do the submit method. If F6 is pressed, disable
the enter key test then emulate an enter key by creating an event object.
The textarea should then insert a new line as if the enter key was pressed.
would that be the right approach and has anyone done something similar.
Thanks

--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация