Script"
From Documentation
Jumperchen (talk | contribs) m (→Example) |
Tmillsclare (talk | contribs) m |
||
Line 39: | Line 39: | ||
=Supported Children= | =Supported Children= | ||
− | *NONE | + | *NONE |
=Use cases= | =Use cases= | ||
Line 46: | Line 46: | ||
! Version !! Description !! Example Location | ! Version !! Description !! Example Location | ||
|- | |- | ||
− | | | + | | |
| | | | ||
| | | | ||
Line 56: | Line 56: | ||
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | 5.0. | + | | 5.0.2 |
| 04/30/2010 | | 04/30/2010 | ||
| Initialization | | Initialization |
Revision as of 03:13, 14 May 2010
Script
Employment/Purpose
The script component is used to specify the script codes running at the browser. Notice that, unlike zscript, the script codes are running at the browser. They are usually written in JavaScript which is supported by the most of browsers. The simplest format is as follows.
Example
<zk>
<window id="win">
<button label="change color" onClick='Clients.evalJavaScript("myfunc()")' />
</window>
<script type="text/javascript">
function myfunc() {
jq("$win").css("backgroundColor", "blue");
}
</script>
</zk>
Supported events
None | None |
Supported Children
*NONE
Use cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
5.0.2 | 04/30/2010 | Initialization |