-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
is it possible to call a applet method from the composer like this? because in the documentation i see it only in the zul page
and this way brings me always the message "method not found" :
public void onClick$GetID_Btn(Event event) { try { this.myApplet.invoke("GetID(name)"); } catch (Exception e) { e.printStackTrace(); } }
but when i call the applet method directly from the zul page it works. but i want to use the composer:
<script type="text/javascript"> function GetID(){ var appletReturn=new Object(); var applet = document.getElementsByTagName("applet")[0]; appletReturn = applet.js_GetID('getIDCallbackMethod'); } function getIDCallbackMethod(value){ alert("returnValue:"+value); } </script> ... <button label="button" xmlns:w="http://www.zkoss.org/2005/zk/client" w:onClick="GetID()"/>
Please help.
Greets
Asked: 2010-08-26 06:19:40 +0800
Seen: 726 times
Last updated: Sep 21 '10