Revision history [back]

click to hide/show revision 1
initial version

answered 2013-07-30 03:57:35 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India

http://emrpms.blogspot.in...

Hi ashishd

I very badly need any one of your help on ZK + Applet + Javascript. Here is the html version which works perfectly

Here is the html version link

As a first step i am trying to integrate the above into Existing ZK Application Here is the testing code

<?page title="Auto Generated index.zul"?>

<window xmlns:w="&lt;a href=" http:="" www.zkoss.org="" 2005="" zk="" client"="">http://www.zkoss.org/2005/zk/client" title="Hello World!!" border="normal" width="200px">

<applet name="CSSNLibJ" id="CSSNLibJ" <br=""> archive="xFunction.jar,CSSNLibJ.jar" code="lib.CSSNLibJ" width="10" height="10"> </applet> <script type="text/javascript">

    { 
            var CSSNLibJ = '' + zk.Widget.$("$CSSNLibJ"); 
            alert("CSSNLibJ "+  CSSNLibJ);

            var foo = zk.Widget.$('$lbl');
            foo.setValue("What's Up?");
            alert("result before " + CSSNLibJ.GetScannerName());
            var result = CSSNLibJ.InitScanLib("8NDANMAE6W8CZ5D5");
            alert("result before ");
            alert("result "+    result);



        }

]]>

</script>

<label id="lbl" value="You are using: ${desktop.webApp.version}" />
<button label="Connect"
    xmlns:w="http://www.zkoss.org/2005/zk/client" w:onClick="f_test();">
</button>

</window>

But it does not happen any thing after this line var result = CSSNLibJ.InitScanLib("8NDANMAE6W8CZ5D5");

When i debug in IE, i am getting the following SCRIPT438: Object doesn't support property or method 'GetScannerName' Copy%20of%20index.zul, line 40 character 14

So it is clear that object does not initialized properly.

But it is working fine without ZK. So please help me

Hi ashishd

I very badly need any one of your help on ZK + Applet + Javascript. Here is the html version which works perfectly

Here is the html version link

As a first step i am trying to integrate the above into Existing ZK Application Here is the testing code

 <?page title="Auto Generated index.zul"?>

<window xmlns:w="&lt;a href=" http:="" www.zkoss.org="" 2005="" zk="" client"="">http://www.zkoss.org/2005/zk/client" xmlns:w="http://www.zkoss.org/2005/zk/client" title="Hello World!!" border="normal" width="200px">

width="200px"> <applet name="CSSNLibJ" id="CSSNLibJ" <br=""> archive="xFunction.jar,CSSNLibJ.jar" code="lib.CSSNLibJ" width="10" height="10"> </applet> <script type="text/javascript">

type="text/javascript">

<![CDATA[ function f_test()

        { 
             var CSSNLibJ = '' + zk.Widget.$("$CSSNLibJ"); 
             alert("CSSNLibJ "+  CSSNLibJ);

             var foo = zk.Widget.$('$lbl');
             foo.setValue("What's Up?");
             alert("result before " + CSSNLibJ.GetScannerName());
             var result = CSSNLibJ.InitScanLib("8NDANMAE6W8CZ5D5");
             alert("result before ");
             alert("result "+    result);



         }

]]>

</script>



]]>



</script>


    <label id="lbl" value="You are using: ${desktop.webApp.version}" />
 <button label="Connect"
     xmlns:w="http://www.zkoss.org/2005/zk/client" w:onClick="f_test();">
 </button>





</window>

</window>

But it does not happen any thing after this line line

var result = CSSNLibJ.InitScanLib("8NDANMAE6W8CZ5D5");

CSSNLibJ.InitScanLib("8NDANMAE6W8CZ5D5");

When i debug in IE, i am getting the following SCRIPT438: Object doesn't support property or method 'GetScannerName' Copy%20of%20index.zul, line 40 character 14

So it is clear that object does not initialized properly.

But it is working fine without ZK. So please help me

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