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

URLException when Attempting to Load Javascript from Frame

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      The example below causes IE 4.0 to crash with the 1.1.3, 1.2, and 1.3 versions
      of the plug-in.

      In 1.1.3 and 1.2.2, the Java Console displays this message:

      MalformedURLException: unknown protocol: javascript

      This is followed by a Dr. Watson error.

      In 1.3, IE crashes without a message when loading this code.

      --------------------------- pluginExample.html ---------------------------------

      <html>

      <script language = "JavaScript">

      function doIEPlugin()
      {
      /*
      ** Output the internet explorer Java Plugin tag.
      */
      var doc = main.document;

      doc.writeln('<object classid='
      + '"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"');
      doc.writeln('width="200" height="200" align="baseline"');
      doc.writeln(' codebase="javaplugin.exe"> ');

      doc.writeln('<param name=code value="UIApplet1.class">');
      doc.writeln('<param name=archive value="swing.jar">');
      doc.writeln('<param name=codebase value=".">');
      doc.writeln('<param name=type value=');
      doc.writeln('"application/x-java-applet;version=1.3">');
      doc.writeln('</object>');
      }
      </script>

      <frameset rows = "100%,*" frameborder = 0 framespacing = 0 border = 0>
      <frame name = "main" src="javascript:parent.doIEPlugin();">
      <frame name = "hidden" >
      </frameset>
      </html>

        Attachments

          Activity

            People

            • Assignee:
              stanleyh Stanley Ho (Inactive)
              Reporter:
              nrodinsunw Nick Rodin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: