0

no such method or variable "getAttribute" on undefined self

asked 2013-07-05 04:29:14 +0800

josephzhao gravatar image josephzhao
1

updated 2013-07-05 06:43:55 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hello all I am using 5.0.9 version, I have the error messages like:

error message no such method or variable "mapId" on undefined this.

or

error message no such method or variable "getAttribute" on undefined self.

in following code.

what is my problem?

Thanks

Joseph

part of the code:

<borderlayout>
            <west title="MAP INFORMATION" width="210px" flex="true"
                border="normal" minsize="210" maxsize="250" splittable="true"
                collapsible="true" onOpen='onWindowResizeJava(this.mapId)'  onSize='onWindowResizeJava(this.mapId)' >
                <variables mapId="${arg.mapId}" local="true"/>
                   <zscript>
                    <![CDATA[
                             public void onWindowResizeJava(String id) {
                                 String javaString="onWindowResizeFromJava('";
                                 javaString +=id;
                                 javaString +="');";

                                 Clients.evalJavaScript(javaString);
                             }
                    ]]>
                    </zscript>

error message no such method or variable "mapId" on undefined this.



<borderlayout>
            <west title="MAP INFORMATION" width="210px" flex="true"
                border="normal" minsize="210" maxsize="250" splittable="true"
                collapsible="true" onOpen='onWindowResizeJava(self.getAttribute("mapId"))'  onSize='onWindowResizeJava(self.getAttribute("mapId"))' >
                <variables mapId="${arg.mapId}" local="true"/>
                <attributes mapId="${arg.mapId}" ></attributes>
                   <zscript>
                    <![CDATA[
                             public void onWindowResizeJava(String id) {
                                 String javaString="onWindowResizeFromJava('";
                                 javaString +=id;
                                 javaString +="');";

                                 Clients.evalJavaScript(javaString);
                             }
                    ]]>
                    </zscript>

error message no such method or variable "getAttribute" on undefined self.

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2013-07-05 04:29:14 +0800

Seen: 11 times

Last updated: Jul 05 '13

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