I'm forwarding this lot (which were posted to the main Squeak list): I have to admit that I've yet to find a way to do it.
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.
On the web there are lots of good applets for free: how can I convince SWIKI to run an applet on a swiki-page?+
[EMAIL PROTECTED] wrote: > On the web there are lots of good applets for free: how can I convince SWIKI > to run an applet on a swiki-page?+ What kind of applet? Whatever you are trying for, a last-ditch way that you can use is to type <html> and then type any html you like. Type </html> at the end of it. -Lex
Well, if you go for example to http://www.mste.uiuc.edu/m2t2/appletslist.html you find several educational plug-ins, With search-engine I found: http://www.mste.uiuc.edu/exner/java.f/leastsquares/#simulation On that page you can play with the applet and at the bottom left you find the hyperlink to the code. --------------------------------------------------------------- Putting it on a swiki-page for a test I hacked a copy of the page and tried: *original>http://www.mste.uiuc.edu/exner/java.f/leastsquares/#simulation* <html> <TABLE BORDER=0><TR><TD> <TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0> <TR><TD><IMG SRC="http://130.89.152.133:8888/docsNL/uploads/306/thumbnail.gif"></TD></TR> </TABLE> </TD><TD> <H1>Least Squares & Data Fitting</H1> </TD></TR></TABLE> <UL><LI>Send comments to <A HREF="mailto:[EMAIL PROTECTED]">Nicholas Exner</A></LI> </UL> <A NAME=description></A> <H3>Description</H3> Click on the graph to create some data points.<BR> Next select the degree of the polynomial used to fit the data.<BR> Finally, hit calculate to view the polynomial. <P> References: <I>(Heath 106-109, Scientific Computing: An Introductory Survey)</I> <P> <hr> <P> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><APPLET CODE="http://130.89.152.133:8888/docsNL/uploads/306/LeastSquares.class" width="430" height="430"></applet></TD></TR> </TABLE> <BR> <FONT SIZE=-1> Applet Source <A HREF="http://130.89.152.133:8888/docsNL/uploads/306/source.txt">LeastSquares java</A>, Written by <A HREF="http://www.uiuc.edu/ph/www/exner">Nicholas Exner</A>. </FONT> <hr> <P><FONT SIZE="-1">Created: 03/28/01 </FONT></P> </html> ------------------------------------ class file uploaded etc. but the java applet will not live > -----Original Message----- > From: Lex Spoon [mailto:[EMAIL PROTECTED]] > Sent: zondag 4 november 2001 5:44 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: SWIKI runs an applet > > > [EMAIL PROTECTED] wrote: > > On the web there are lots of good applets for free: how can > I convince SWIKI > > to run an applet on a swiki-page?+ > > > What kind of applet? > > Whatever you are trying for, a last-ditch way that you can use is to > type <html> and then type any html you like. Type </html> at > the end of > it. > > -Lex > >
[EMAIL PROTECTED] 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. 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.
John Hinsley wrote: > > [EMAIL PROTECTED] 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.
