Script

From Documentation

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

ZKComRef Script Example.png

 <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

Name
Event Type
None None

Supported Children

  • NONE

Use cases

Version Description Example Location
5.0+    

Version History

Version Date Content
5.0.1 04/30/2010 Initialization



Last Update : 2010/04/30

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.