-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have the following zk page
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="id_without_spaces" title="old title" border="normal">
<zscript><![CDATA[
id_without_spaces.setTitle("new title"); // works fine
]]></zscript>
</window>
<window id="id with spaces" title="old title" border="normal">
<zscript><![CDATA[
id with spaces.setTitle("new title"); // how to reference?
]]></zscript>
</window>
</zk>
I do agree with Senti, use only zscript for prototyping.
If possible try to avoid spaces in Id's.
If not possible :
((Window)this.self.getFellow("id with spaces")).setTitle("new title");
Greetz chill.
Asked: 2015-04-10 15:20:23 +0800
Seen: 19 times
Last updated: Apr 13 '15
I strongly recommend not to use zscript
Senthilchettyin ( 2015-04-10 19:13:08 +0800 )edit