-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can I catch onOk keyevent in multiline Textbox ?
For example:
<textbox id="new_message" value="" maxlength="128" rows="3" onOK="alert("Hello World!")"/>
or how can I use no multiline Textbox with 3 rows for long text?
Thank you for your answer.
I develop chat and make textbox for input messages. When user presses Enter key, message will be send to the server. Message can be so long 100-200 symbols. In this case I have to use multiline textbox. But in multiline textbox Enter key make new line and don't call onOK event.
At present I use 2 textboxes and catch onkeydown action and use a lot of javascript with createEvents for this. In new version ZK 3.0.6 onOK keyevent was added to textbox, so I would like to use onOK instead. But it doesn't work with multiline mode.
Asked: 2008-07-17 22:28:26 +0800
Seen: 461 times
Last updated: Jul 22 '08