0
Welcome Guest! Login
0 items Join Now

Cannot get javascript to work within Joomla. Works fine out.

  • Cannot get javascript to work within Joomla. Works fine out.

    Posted 15 years 9 months ago
    • Using Joomla 1.5.13

      I am building a website. One of the things I wanted to do was add a small game to the website. It's java script. I've uploaded the files and script to my site and if I directly go to the URL it works fine as you can see here:

      http://www.aion-on-line.com/images/stories/Interactivefiction/ColossalAdventure.html

      Also if I use a wrapper within Joomla it works fine. But if I embed the same script within an Article or Custom HTML module it does not work. I am using 'no editor' to insure the actual code is unchanged.

      Here is the error the java script reports:
      load: class russotto/zplet/Zplet.class not found.
      java.lang.ClassNotFoundException: russotto.zplet.Zplet.class
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: open HTTP connection failed:http://www.aion-on-line.com/russotto/zplet/Zplet/class.class
      at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      ... 7 more
      Exception: java.lang.ClassNotFoundException: russotto.zplet.Zplet.class

      and here is the script itself:
      <title>Adventure</title>
      <hr>
      <applet code="russotto/zplet/Zplet.class" width=640 height=400>
        <param name="archive" value="ZPlet.jar" />
        <param name="StoryFile" value="http://www.AION-On-Line.com/images/stories/Interactivefiction/ColossalAdventure.z5" />
                <param name="Foreground" value="black" />
                  <param name="Background" value="white" />
                  <param name="StatusForeground" value="black" />
                  <param name="StatusBackground" value="white" />
        </applet>
      <hr>
      Please note that SAVE and RESTORE may not available due to
      applet security restrictions.  Leaving this page may or may
      not restart the game depending on the behavior of your browser.

      Obviously it is reporting it cannot find the zplet.class file. I have attempted to change the path to that file with every possible combination I can think of but to no avail.

      I'll attach the files here if anyone cares to help or wants to play with it. I just cannot get it to work.

      Basically the zplet.class file is the emulator. The ColossalAdventure.z5 is the actual data file of the game itself in zcode. The .z5 can be swapped out with other games easily.
    • yuleane's Avatar
    • yuleane
    • Newbie
    • Posts: 10
    • Thanks: 0

    Re: Cannot get javascript to work within Joomla. Works fine out.

    Posted 15 years 9 months ago
  • Re: Cannot get javascript to work within Joomla. Works fine out.

    Posted 15 years 9 months ago
    • I just tried downloading that module but got an error when i tried to do so. the site is in a language i do not know how to speak but i went to the download section and figured it out. this is the error message i got.

      Il file non è disponibile sul server

      Not sure what it means but I think something along the lines of file not on server?
  • Re: Cannot get javascript to work within Joomla. Works fine out.

    Posted 15 years 9 months ago

Time to create page: 0.350 seconds