Namespace and ID Space more examples

From Documentation
Revision as of 04:26, 23 July 2010 by Char (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} You can simply copy and paste the following sample code to [http://www.zkoss.org/zkdemo/userguide/ ZK Live Demo] to test it. Also, you can modif…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentationamespace and ID Space more examples
amespace and ID Space more examples


Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


You can simply copy and paste the following sample code to ZK Live Demo to test it. Also, you can modify it to test.

<window id="w1">
	<label id="w1_L1" value="origin_w1_L1" />
	<button id="w1_b1" label="origin_w1_b1"
		onClick='w2_L1.value="after_w1_b1"' />
	<zscript>
		w1_z1="origin_w1_z1";
	</zscript>
	w1_1:${w1_z1}
	<window id="w2">
		<label id="w2_L1" value="origin_w2_L1" />
		<button id="w2_b1" label="origin_w2_b1"
			onClick='w1_L1.value="after_w2_b1"' />
		w2_1:${w2_z1}
		<zscript>
			w2_z1="origin_w2_z1";
		</zscript>
		w2_2:${w2_z1} w2_3:${w1_z1}
	</window>
	w1_2:${w2_z1}
</window>



Last Update : 2010/07/23

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