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

JDK-1.2.2-V javascript cannot invoke java

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      Under Internet Explorer 4.0 (Version 4.72.3110) under Windows 98
      JavaScript invocation of a Java method fails. This works with 1.2.1, but it did not work with 1.2.2RC1.

      A test case is included. I have modified the JDK TicTacToe example program to add a method "makeNoise()". The html file testcase.html uses JavaScript to invoke this method. Once at startup, and once whenever the "Cheer" button in the applet is clicked.

      A zip file containing the java, class file, html page, and supporting files is attached. Here is a listing of the zip:
      % unzip -l testcase.zip
       Length Date Time Name ("^" ==> case
       ------ ---- ---- ---- conversion)
            0 03-05-99 18:00 ^com/
            0 03-05-99 18:00 ^com/sun/
            0 03-05-99 18:00 ^com/sun/east/
            0 03-05-99 18:00 ^com/sun/east/tpg/
            0 03-05-99 18:00 ^com/sun/east/tpg/sccs/
            0 06-07-99 14:22 ^debug/
            0 07-01-99 18:33 ^tictactoe/
            0 07-01-99 18:33 ^tictactoe/images/
            0 07-01-99 18:33 ^tictactoe/audio/
            0 07-01-99 18:33 ^images/
            0 07-01-99 18:33 ^audio/
         4109 07-01-99 17:55 ^tictactoe/tictactoe.class
         8286 07-01-99 16:46 ^tictactoe/tictactoe.java
          157 03-27-99 18:59 ^tictactoe/images/cross.gif
          158 03-27-99 18:59 ^tictactoe/images/not.gif
         4032 03-27-99 18:59 ^tictactoe/audio/beep.au
         2566 03-27-99 18:59 ^tictactoe/audio/ding.au
         6558 03-27-99 18:59 ^tictactoe/audio/return.au
         7834 03-27-99 18:59 ^tictactoe/audio/yahoo1.au
         7463 03-27-99 18:59 ^tictactoe/audio/yahoo2.au
         1577 07-01-99 18:30 ^tictactoe/testcase.html
       ------ -------
        42740 21

        Attachments

          Activity

            People

            Assignee:
            shainessunw Suzette Haines (Inactive)
            Reporter:
            tgould Tom Gould (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: