SWIKI runs an applet

John Hinsley jhinsley at telinco.co.uk
Mon Nov 5 01:44:28 UTC 2001


John Hinsley wrote:
> 
> G.J.Tielemans at dinkel.utwente.nl wrote:
> 
> > class file uploaded etc. but the java applet will not live
> 
> If you download the class file and point your browser at the html
> (ignoring the Swiki for the time being), will it run in your browser?
> 
> If "yes", what is the relationship (directory structure) between the
> html and the class file?
> 
> Can you replicate this in terms of the Swiki?
> 
> I don't know the answer(!) but
> 
> <HTML>
> <HEAD>
> <TITLE>ColourSwirlHello</TITLE>
> </HEAD>
> <BODY BGCOLOR="SILVER">
> <P><CENTER>This Java Applet says:<BR>
> <APPLET CODE="HelloColourSwirl.class" WIDTH=610 HEIGHT=60>
> </APPLET>
> </BODY>
> </HTML>
> 
> Will work if (all other issues being resolved!) the html and class are
> in the same directory.

I meant to say, "it'll work outside the Swiki"!

Inside, using a very small, tried and tested java applet, Netscape
simply says it cannot load it. The html displays, and the standard "grey
flash of death", but nothing else. Tinkering (externally) with the
Swikis permissions doesn't seem to change anything (and probably isn't a
very good idea, anyway).

Rendering the Swiki and popping the class in the /rendered directory
will work externally (that is, not going through the Swiki) but I'm
still trying to find a way of referencing the relevant .html page. I'll
persist, but it strikes me that this is not a great way of doing things:
far better to let Apache serve up the java.

Cheers

John


-- 
If you don't care about your data, like file systems which automagically
destroy themselves and have money to burn on 3rd party tools to keep
your
system staggering on, Microsoft (tm) have the Operating System for you.




More information about the Squeak-dev mailing list