Applet问题

时间:2011-11-28 20:47:39

标签: java applet

我的HTML页面中有一个Applet,如下所示:

<object  classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
           width = "1" 
           height = "1" 
           name = "LMSTestSCODriver"  
           codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,0"
           alt = "This object contains the LMSTestSCOApplet">
     <param name = "CODE"      value = "org.adl.testsuite.rte.lms.comm.LMSTestSCOApplet.class" />
     <param name = "CODEBASE"  value = "../common" />
     <param name = "ARCHIVE"   value = "LMSTest.jar" />
     <param name = "NAME"      value = "LMSTestSCODriver" />
     <param name = "type"    value = "application/x-java-applet;version=1.4" />
     <comment>
        <applet code    = "org.adl.testsuite.rte.lms.comm.LMSTestSCOApplet.class"
                archive = "LMSTest.jar"
                name    = "LMSTestSCODriver"
                id      = "NNLMSTestSCODriver"
                width   = "1"
                height  = "1"
                mayscript = "true">
           <param name = "codebase" value = "../common" />
        </applet>
     </comment>
  </object>

发生以下错误:

Microsoft JScript运行时错误:对象不支持属性或方法'evalID'

在以下一行:

var result = LMSTestSCODriver.evalID(query1 +“!”+ query2);

出现此错误的原因是什么?

1 个答案:

答案 0 :(得分:0)

我会更改用于部署此applet的整个方法。 Oracle提供了deployJava.js来部署applet和JWS应用程序。