Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4361295

Accessing JApplet methods from javascipt using java plugin 1.3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1_01
    • 1.3.0
    • deploy
    • pr3
    • generic
    • generic



      Name: skT45625 Date: 08/09/2000


      http://localhost:8080/japp1.html

      output : "document.f1.embeds has no properties. "


      When i tried to execute this code on Netscape 4.56 it is not working but when i
      tried to execute on Internet Explorer 5.0 it is working safely.



      <html>
      <body>

      <script language="javascript">
      function fun() {
      alert(" inside fun before invoking applet's method. ");

      if (document.all)
      document.f1.app1.set("hai");
      else
      document.f1.app.set("hai");
      alert(" inside fun after invoking applet's method. ");
      }
      </script>
      <FORM NAME="f1">
      <OBJECT ID="app1" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      WIDTH=200 HEIGHT=300 NAME="app1"
      codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-
      win32.cab#Version=1,3,0,0">
      <PARAM NAME=CODE VALUE="japp1">
      <PARAM NAME="codebase" value="http://172.16.29.6:8080/">
      <PARAM NAME="NAME" VALUE="app1" >
      <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
      <PARAM NAME="scriptable" VALUE="true">
      </OBJECT>

      <EMBED type="application/x-java-applet;version=1.3" ID="app" WIDTH=200
      HEIGHT=300 CODE="japp1" MAYSCRIPT=true
      pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"
      NAME="app">
      <NOEMBED>No jdk1.3 support for applet
      </NOEMBED></EMBED>
      </OBJECT>

      <INPUT TYPE="BUTTON" VALUE="Click" onClick="fun()">
      </FORM>
      </body>
      </html>

      The error i am getting is "document.f1.app has no properties. "
      (Review ID: 108198)
      ======================================================================

            stanleyh Stanley Ho (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: