0

ZK 3.5 - click button from zscript

asked 2013-10-23 20:21:10 +0800

tesla gravatar image tesla
0 1

updated 2013-10-23 20:27:50 +0800

Help, please

I have something like

<window onOK="doOK()">
    <zscript>
        public void doOK() {
            <![CDATA[
             need to click the loginGms button
             does NOT work: Events.sendEvent(new Event("onOK", loginGms));                  
            ]]>
        }   
        </zscript>
    <button id="loginGms" action="onclick: need to call some javascript functions" />
</window>

I need to do some client-side javascript computing before get into onClick method in composer. How to make it work in zkoss 3.5?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-25 10:24:16 +0800

paowang gravatar image paowang
140 6

I do some research and find "Client Side Action".

It might be what you want.

check this document:

ZK Dev Guide 3.6.3

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2013-10-23 20:21:10 +0800

Seen: 12 times

Last updated: Oct 25 '13

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