Difference between revisions of "Namespace and ID Space more examples"

From Documentation
(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…')
 
 
Line 1: Line 1:
{{ZKDevelopersGuidePageHeader}}
+
#REDIRECT [[ZK Developer's Reference/UI Composing/ID Space]]
 
 
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 modify it to test.
 
 
 
<source lang="xml" >
 
<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>
 
</source>
 
 
 
{{ ZKDevelopersGuidePageFooter}}
 

Latest revision as of 03:12, 20 July 2011