0

Run ZK Script from JavaScript

asked 2008-10-15 12:31:40 +0800

memaster gravatar image memaster
66 2

Hello
I want to capture onmousedown, onmouseup und DOMMouseScroll but I did not find options to do this in zk script.

So I'm trying to get this event in Javascript and call zk code from there. The only option I found is

document.getElementById('${btn.uuid}' + '!real').click();

But with this method I can not parse variables. Is there a way to do this?

Thanks memaster

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2008-10-22 11:22:48 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

updated 2008-10-23 04:19:02 +0800

Hi memaster,

ZK supports Client Side Action which allows you to register JS event, and invokes your JS functions. Simply specify your condition in action attribute of ZK components.

For more information, please refer to Client Side Action.

/robbie

link publish delete flag offensive edit

answered 2008-10-23 04:22:41 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

This might useful to your case.

http://en.wikibooks.org/wiki/ZK/How-Tos#Pass_JavaScript_variable_value_to_ZK_Server

link publish delete flag offensive edit

answered 2008-10-23 16:19:49 +0800

memaster gravatar image memaster
66 2

Thanks it's working fine

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-10-15 12:31:40 +0800

Seen: 1,018 times

Last updated: Oct 23 '08

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