By jkubacki
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.
Thanks to tsangk for this great snippet: conditional-blocks
text above inserted with:
[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]
Other snippets posted by jkubacki
Rate this solution
If you think this solution is useful — rate it up!
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!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Happy to say this, this is going to work some day.
See: http://groups.google.com/group/wikidot/browse_thread/thread/b0db300e0d02095a?hl=en
Piotr Gabryjeluk
visit my blog
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
Piotr Gabryjeluk
visit my blog