Help: Squeak Browser Plugin - Loading Project Fails in Browser

Ned Konz ned at squeakland.org
Thu Dec 23 07:41:44 UTC 2004


On Wednesday 22 December 2004 8:57 pm, Milan Zimmermann wrote:
> Hi Scott,
>
> Thanks for your comments and help, appreciate the time you spending on
> helping me. I will start using the Squeakland image, although I suspect I
> may have problems importing my project into it (as it fails importing into
> the Browser Plugin image that I assume is similar .. on the other hand the
> "Game" is so simple that I can easily redo it from scratch). Hmm, so far I
> was unable to find the Squeakland mage download page for it in the 15
> minutes I searched, will keep looking. I will post the URL here once
> sucessful...
>
> A related question that you or someone may be able to answer: Is there a
> way, using the "object" tag, to force the plugin to download and use "my
> image" (to which the project then would be loaded) as opposed to the
> "default Browser Plugin image"? Not that I would want to polute people's
> WebBrowser plugins with incompatible images, but it would be an interesting
> exercise.

I suspect that this wouldn't be too hard; you'd have to change the type in the 
EMBED tag from "application/x-squeak-source" to something else that would be 
associated with some specific version of the Squeak VM (possibly custom-built 
for your application) and "my image".

And another Squeak plugin would have to be installed, with "my image" in the 
right place, and this plugin would have to register itself as a handler for 
the appropriate types.

But since the plugin itself identifies the types that it's responsible for 
handling, and since these are hard-coded in the Squeak plugin, you might have 
to compile your own npsqueak (the Squeak plugin):

$ strings ~/.mozilla/plugins/npsqueak.so | grep application
application/x-squeak-source:sts:Squeak 
source;application/x-squeak-object:sqo:Squeak 
object;application/x-squeak-project:pr:Squeak project


-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list