Namespace and ID Space more examples
From Documentation
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>