Moodle
  1. Moodle
  2. MDL-7724

Applets fail to load with Firefox

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Not a bug
    • Affects Version/s: 1.6.3
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      Firefox 2.0 on Mac OS X and Firefox 1.5.0.7 on Linux (Fedora Core 5)
    • Rank:
      3395

      Description

      When embedding applets in internal web pages for moodle the applets will fail to load and run when using the Firefox web browser. Using a non-moodle external site the applets work fine within Firefox only within Moodle do they fail to load so I don't think it can be an imcompatibility with the Firefox implementation of/interface to the JVM.

      I have tried both putting the JAR file in the course files as well as referencing an external JAR file on a remote server: in neither case does the applet run with Firefox. The browser simply states "applet not loaded".

      Looking at the identical pages in the Safari browser everything works fine. The applets load and run perfectly in all the conditions.

      The applet in question is linked below from the original website (not mine): the applet draws the electron wavefunctions for the hydrogen atom. I only have an active course site with the Moodle-embeded applet which does not have open access, sorry.

      An example of the code I used to embed the applet is:

      <applet code="AtomViewer.class"
      codebase="http://thwaite.phys.ualberta.ca/moodle-1.6/file.php/2/Applets/qmatom"
      archive="qmatom.jar" width="600" height="50">
      Sorry, you need a Java-enabled browser to see the simulation.
      <param name="pause" value="10">
      </applet>

      I put this in an internal HTML page within Moodle. This works fine with Safari and not at all with Firefox.

      As a last gasp attempt to fix it I also changed the Moodle theme to see if that made any difference but it did not.

        Activity

        Hide
        Russell Hugo added a comment -

        Hi,

        We ran into the same issue. Java Applet runs fine in IE, but not in Firefox. We tried two versions of Moodle (1.9.2, 1.8.2) under firefox to no avail. A bug fix on this would be greatly appreciated.

        Thanks!

        -Russ

        Show
        Russell Hugo added a comment - Hi, We ran into the same issue. Java Applet runs fine in IE, but not in Firefox. We tried two versions of Moodle (1.9.2, 1.8.2) under firefox to no avail. A bug fix on this would be greatly appreciated. Thanks! -Russ
        Hide
        Peter Miles added a comment -

        We've struggled with this issue and think the solution is that codebase ="." needs to be before the code statement (we also tried putting these on separate lines, and using an id) but, hey, the following works, so we're happy to share it!

        <applet
        codebase = "."
        code=smudge.TogaApplet.class
        id=asteroids
        width=1024 height=768 >
        <param name="game" value="pandd_loc">
        <param name = "level" value = "2">
        <param name = "sound" value = "1">
        <param name = "units" value = "0">
        <param name = "lang" value = "English">
        </applet>

        www.stormeducational.co.uk

        Show
        Peter Miles added a comment - We've struggled with this issue and think the solution is that codebase ="." needs to be before the code statement (we also tried putting these on separate lines, and using an id) but, hey, the following works, so we're happy to share it! <applet codebase = "." code=smudge.TogaApplet.class id=asteroids width=1024 height=768 > <param name="game" value="pandd_loc"> <param name = "level" value = "2"> <param name = "sound" value = "1"> <param name = "units" value = "0"> <param name = "lang" value = "English"> </applet> www.stormeducational.co.uk
        Hide
        Dan Poltawski added a comment -

        Hi, I don't believe this is a bug in Moodle, so i'm closing this issue.

        Show
        Dan Poltawski added a comment - Hi, I don't believe this is a bug in Moodle, so i'm closing this issue.

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: