Java Applets

Description

Easy way to include Java applets:

  • create Java applet (ex. ChaosGame.class) and upload it into your wiki page
  • create simple HTML page to display the applet, upload it into your wiki page but use html extension in file name, use for example xxx (ex. chaos.xxx).
  • embed the HTML page into your wiki page using [[iframe]] tag

* use specific naming convention for the URL of your html file:
http://your_name.wdupload.wikidotsyndication.com/localfiles/your_page/chaos.html

Code

Simple HTML page (chaos.html):

<html>
    <head>
        <title>Chaos Game</title>
    </head>
    <body>
        <applet code="ChaosGame.class" height="128" width="128"></applet>
    </body>
</html>

Code to be included in your wiki page:

[[iframe http://your_name.wikidot.com/local--files/your_page/chaos.html]]

In action

[[iframe http://snippets.wikidot.com/local--files/code:java-applets/chaos.html]]

To remove the border and so on - see Wiki syntax.

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +5+x

Comments

Not working anymore
GabrysGabrys 1209755198|%e %b %Y, %H:%M %Z|agohover

Sorry to say this, but this is not going to work anymore as we fixed a bug in serving user-submitted files as HTML.

For more details see here: http://community.wikidot.com/bugs:iframe

unfold Not working anymore by GabrysGabrys, 1209755198|%e %b %Y, %H:%M %Z|agohover
Will work soon
GabrysGabrys 1209763299|%e %b %Y, %H:%M %Z|agohover

Happy to say this, this is going to work some day.

See: http://groups.google.com/group/wikidot/browse_thread/thread/b0db300e0d02095a?hl=en

unfold Will work soon by GabrysGabrys, 1209763299|%e %b %Y, %H:%M %Z|agohover
This is only working now in IE ( 6, 7) , IE has a bug....
Helmuti_pdorfHelmuti_pdorf 1209803522|%e %b %Y, %H:%M %Z|agohover

ediT:
This is only working now in IE ( 6, 7) , IE has a bug…

Sorry, but true - if you use Internet Explorer, you will see the applet working.

But this is a security bug in IE and not in wikidot.

There is a workaround as Gabrys wrote - have a look if you realy need it at the link supplied!

Or wait if you can on the secure wikidot solution…

THIS GENERAL TECHNIC IS NOW WORKING!

last edited on 1210577608|%e %b %Y, %H:%M %Z|agohover by Helmuti_pdorf + show more
Add a new comment
page_revision: 11, last_edited: 1210586093|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License