1

Custom effect

asked 2013-03-29 20:39:12 +0800

JLI gravatar image JLI
11 1

Hi,

I am trying to get custom effects to work using the following code:

<zk>
  <script>
    zk.eff.Actions.onShow = function (n, opts) {
      alert("tab became visible");
    };
  </script>
  <tabbox>
    <tabs>
      <tab>Tab 1</tab>
      <tab>Tab 2</tab>
    </tabs>
    <tabpanels>
      <tabpanel action="show: onShow">
        Tab 1
      </tabpanel>
      <tabpanel>
        Tab 2
      </tabpanel>
    </tabpanels>
  </tabbox>
</zk>

However, although ZK complains if the effect is not registered, the alert message is never shown.

Any idea what I am doing wrong here?

Regards,

J.

delete flag offensive retag edit
Be the first one to answer this question!
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-03-29 20:39:12 +0800

Seen: 17 times

Last updated: Mar 29 '13

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