-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
Asked: 2013-07-05 04:29:14 +0800
Seen: 11 times
Last updated: Jul 05 '13
Do not update to ZK Studio 2.0
Catch Server 503 Error - Or Catch Stale Page
how to save spreadsheet data into postgres database?
One controller file with multiple zul file
Why am I getting authentication error for ZK studio activation?
How can i make Tomcat (with virtual hosts) to parse the zul page in subfolders?