Created
August 26, 2010 12:36
-
-
Save tony1223/551315 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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