0

onOk with multiline Textbox

asked 2008-07-17 22:28:26 +0800

Vic gravatar image Vic
54

updated 2008-07-17 23:56:02 +0800

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?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2008-07-19 16:18:11 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Can you tell us your use case or intension?

link publish delete flag offensive edit

answered 2008-07-20 12:30:38 +0800

Vic gravatar image Vic
54

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.

link publish delete flag offensive edit

answered 2008-07-22 02:18:04 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Please post to feature request.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-07-17 22:28:26 +0800

Seen: 461 times

Last updated: Jul 22 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More