nagasampath
04-25-2009, 10:18 PM
I am including a javascript file in lzx file. on a button click I need to get the funtion in javascript for example
<include href="ChangeURL.js" />
<handler name="onclick">
var temp = this.parent.datapath.xpathQuery('encoded/text()');
var test="test()"; //function in javascript located in the ChangeURL.js file
lz.Browser.callJS("" + test + "", this.gotReturn, temp);
<method name="gotReturn" args="r">
Debug.debug('gotReturn', r);
</method>
Here I am not able to fetch that test() function from javascript, Please help me.
Thanks
<include href="ChangeURL.js" />
<handler name="onclick">
var temp = this.parent.datapath.xpathQuery('encoded/text()');
var test="test()"; //function in javascript located in the ChangeURL.js file
lz.Browser.callJS("" + test + "", this.gotReturn, temp);
<method name="gotReturn" args="r">
Debug.debug('gotReturn', r);
</method>
Here I am not able to fetch that test() function from javascript, Please help me.
Thanks