1

How to reference in zscript component which id contains spaces

asked 2015-04-10 15:20:23 +0800

meerkat gravatar image meerkat
15 4

updated 2015-04-10 15:20:43 +0800

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>
delete flag offensive retag edit

Comments

I strongly recommend not to use zscript

Senthilchettyin ( 2015-04-10 19:13:08 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-13 07:40:29 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

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.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-04-10 15:20:23 +0800

Seen: 19 times

Last updated: Apr 13 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More