-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
I want to call zscript function from javascript...
Is it possible ? if yes then how to call zscript function from javascript? what is proper way to do so..
Hi aks,
Here is a simple sample:
<zk xmlns:w="client"> <script type="text/javascript"><![CDATA[ var s = '<label><attribute name="onCreate">System.out.println("test");self.detach();</attribute></label>'; ]]></script> <div id="cmd"> </div> <textbox id="tb" value="x"> <attribute name="onFocus"> Executions.createComponentsDirectly(self.getValue(), null, cmd, null); </attribute> </textbox> <button label="click me" w:onClick="zk.Widget.$(jq('$tb')).setValue(s);zk.Widget.$(jq('$tb')).fireOnChange()" /> </zk>
Asked: 2012-02-02 10:22:23 +0800
Seen: 153 times
Last updated: Feb 04 '12