Dan,
yes, that is the point. Regarding the origin of the HTML I am sure it is coming from the guys who wrote the plugin (Impara or Viewpoints or both) but I no longer rememeber where I saved it from, probably email of someone else - from them you may get additional help or suggestions, but this should be one way... Hopefully one day the Squeak Plugin will have ubiquity of Flash Player :)
Milan
On 2006 May 29 01:48, Dan Shafer wrote:
Thanks, Milan. Very helpful. I see that the server doesn't need to be aware of the data type of the content because you use an embedded object in the browser's code to circumvent. I know basically how to do that, so I'm off to do some trial work now.
Dan
On May 28, 2006, at 1:32 AM, Milan Zimmermann wrote:
Dan,
A few notes below:
On 2006 May 28 02:32, Dan Shafer wrote:
OK, I downloaded the Squeak plug-in and I seem to be able to access .pr files stored on other sites. But how do I deploy a Squeak project as a plugin? I think the questions I need answered are:
- What does the server (Apache) need to know in order to serve
Squeak projects as files? Anything?
I am using Kom as Http server (not Apache), and this is the piece of HTML that works - I guess it piggibacks the .pr file through squeakland. The only important thing is the href:
<a href="http://www.squeakland.org/project.jsp?http://squeakers.ca: 9090/squeak/games/FishTank-link.pr"><img alt=""Squeak"saver" title="Make your own "Squeak"saver" src="squeak/games/FishTank-link.gif" style="border: 5px solid ; width: 250px; height: 175px;"></a>
I suspect it will work on Apache as well, but do not know for sure.
Perhaps you can start with this, just t test your project works etc, and take it from there, ask questions , plus more info about the HTTP plugin:
http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/ plugintest.html http://www.squeakland.org/plugin/launch.html http://squeakland.org/pipermail/squeakland/2004-October/002230.html
and this message from Diego I saved:
And also:
failureURL="http:// www.whereYouCanFindAnInstallerForTheMissingImage.com"
<OBJECT ID="SqueakOCX Control"
imageName="MySqueak.image"
WIDTH=1024 HEIGHT=768 ALIGN=center BORDER=2 CLASSID="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006"
CODEBASE="http://www.squeakland.org/installers/ SqueakPluginInstaller.exe">
<embed type="application/x-squeak-source"
imageName="MySqueak.image"
ALIGN="CENTER" WIDTH="1024" HEIGHT="768" pluginspage="http://www.squeakland.org/detect.html" update_url="http://www.squeakland.org/update/" ></embed>
</OBJECT>
- Will detection of the plugin be semi-automatic? I.e., if a user
without the plugin tries to download a Squeak project, will he get an error, an ugly binary dump or something meaningful?
From what I remember, in the life without the plugin in all my browsers, if done "correctly" it will redirect user to the site where to find the plugin. If you use the simple version on top, it will do it right.
- Anything else I need to know about deployment?
I am sure there is more and people more qualified will comment, hopefully the above is a start,
Milan
Thanks. Dan