Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created August 26, 2010 12:36
Show Gist options
  • Save tony1223/551315 to your computer and use it in GitHub Desktop.
Save tony1223/551315 to your computer and use it in GitHub Desktop.
<zk>
<window id="win" border="normal" width="400px" height="500px">
<label id="hello" value="not changed" />
</window>
<script type="text/javascript">
zk.afterMount(function() { // do in this for zk is already loaded
function zk$( widgetId ){
return zk.Widget.$(jq("$"+widgetId));
}
jq("$win").mousemove(function(e){
zk$("hello").setValue("This is a exmaple for (" + e.pageX +", "+ e.pageY +");");
});
});
</script>
</zk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment