Re: Accessing projects from a Web page

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Accessing projects from a Web page

Klaus D. Witzel
Would some good soul please have a look a the plugintest.html page, which  
on my platform starts with the following text in the plugin window: Hello  
Plugin World!

This window was opened by some code in the file plugintest.sts, which was  
downloaded by your web browser. The browser started the Squeak Virtual  
Machine (C:\Program Files\Opera\Program\Plugins\Squeak.exe) with a default  
object image (C:\Program Files\Opera\Program\Plugins\SqueakPlugin.image).

Since you are reading this I guess all is okay then ...

Click FIND in the Navigator bar below to load some example projects. You  
can get a larger view by clicking "Escape Browser".

--------my observations:

1) there is no Navigation bar (so no escape from the browser)
2) the heigth of the plugin is insufficient for reaching all items of the  
world menu (i.e. the desktop menu)

Since this is a test page, me too would like to see it work.

BTW the Fullwindow mode link works here and let me access the desktop menu  
 from the world menu.

Thank you in advance.

/Klaus

On Fri, 09 Jun 2006 15:40:52 +0200, Bob Courchaine <[hidden email]>  
wrote:

> Hi, Mark!
>
> It's not really clear below how you "linked to a project".
>
> Here's a test and an example of the HTML you use to access the Squeak
> Plugin, which is what Squeak Projects need to run in a browser:
>
> http://wwwisg.cs.uni-magdeburg.de/~bert/squeak/plugin/test/plugintest.html
>
> Hope that helps!
>
> Bob
>
> Mark McCarty wrote:
>> Hi,
>>
>> Is there a trick to accessing Squeak projects from a Web page?
>>
>> I built a Web page and linked to a project I put on my Web server which
>> is hosted by a third party ISP.
>>
>> Instead of opening the project when the link is clicked the Windows
>> download dialog box displays. I have to click the Open button to display
>> the project. It works but I'd rather have the project display without
>> the dialog box.
>>
>> Any ideas?



Reply | Threaded
Open this post in threaded view
|

Re: [Newbies] Re: Accessing projects from a Web page

Bert Freudenberg-3
Am 10.06.2006 um 05:49 schrieb Klaus D. Witzel:

> Would some good soul please have a look a the plugintest.html page,  
> which on my platform starts with the following text in the plugin  
> window: Hello Plugin World!
>
> This window was opened by some code in the file plugintest.sts,  
> which was downloaded by your web browser. The browser started the  
> Squeak Virtual Machine (C:\Program Files\Opera\Program\Plugins
> \Squeak.exe) with a default object image (C:\Program Files\Opera
> \Program\Plugins\SqueakPlugin.image).
>
> Since you are reading this I guess all is okay then ...
>
> Click FIND in the Navigator bar below to load some example  
> projects. You can get a larger view by clicking "Escape Browser".
>
> --------my observations:
>
> 1) there is no Navigation bar (so no escape from the browser)
> 2) the heigth of the plugin is insufficient for reaching all items  
> of the world menu (i.e. the desktop menu)
>
> Since this is a test page, me too would like to see it work.
>
> BTW the Fullwindow mode link works here and let me access the  
> desktop menu from the world menu.


This test page assumes you actually use Squeakland's  
SqueakPlugin.image. That image has the "golden" navigator flap  
enabled by default. The code that opens the workspace is in the file  
plugintest.sts, it could be made more intelligent to test for enabled  
flaps. However, I can't update that website easily anymore.

Using the Squeakland image, the world menu fits on the screen for me.  
If it does not in your image, you could use Alt-Drag to move it.

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: [Newbies] Re: Accessing projects from a Web page

Klaus D. Witzel
On Sat, 10 Jun 2006 11:04:48 +0200, Bert Freudenberg wrote:

> Am 10.06.2006 um 05:49 schrieb Klaus D. Witzel:
>
>> Would some good soul please have a look a the plugintest.html page,  
>> which on my platform starts with the following text in the plugin  
>> window: Hello Plugin World!
>>
>> This window was opened by some code in the file plugintest.sts, which  
>> was downloaded by your web browser. The browser started the Squeak  
>> Virtual Machine (C:\Program Files\Opera\Program\Plugins\Squeak.exe)  
>> with a default object image (C:\Program Files\Opera
>> \Program\Plugins\SqueakPlugin.image).
>>
>> Since you are reading this I guess all is okay then ...
>>
>> Click FIND in the Navigator bar below to load some example projects.  
>> You can get a larger view by clicking "Escape Browser".
>>
>> --------my observations:
>>
>> 1) there is no Navigation bar (so no escape from the browser)
>> 2) the heigth of the plugin is insufficient for reaching all items of  
>> the world menu (i.e. the desktop menu)
>>
>> Since this is a test page, me too would like to see it work.
>>
>> BTW the Fullwindow mode link works here and let me access the desktop  
>> menu from the world menu.
>
>
> This test page assumes you actually use Squeakland's SqueakPlugin.image.  
> That image has the "golden" navigator flap enabled by default.

I believe that is indeed the case, it says 'Squeakland 3.8-05 of 1  
September 2005'. I use it for the Petri net demo
- http://www.iam.unibe.ch/~scg/Teaching/CP/PetriNets/

> The code that opens the workspace is in the file plugintest.sts, it  
> could be made more intelligent to test for enabled flaps. However, I  
> can't update that website easily anymore.

Thank you anyways for taking care.

> Using the Squeakland image, the world menu fits on the screen for me.

Not that I did expect the following but, enlarging the Opera web page to  
150% did the job, the menu now fits :)

> If it does not in your image, you could use Alt-Drag to move it.

Tried it but that stalls the VM (no reaction to mouse or keyboard) and one  
has to reload the web page.

> - Bert -

Thanks again.

/Klaus
>



Reply | Threaded
Open this post in threaded view
|

Re: [Newbies] Re: Accessing projects from a Web page

Bert Freudenberg-3

Am 10.06.2006 um 11:29 schrieb Klaus D. Witzel:

>> This test page assumes you actually use Squeakland's  
>> SqueakPlugin.image. That image has the "golden" navigator flap  
>> enabled by default.
>
> I believe that is indeed the case, it says 'Squeakland 3.8-05 of 1  
> September 2005'. I use it for the Petri net demo
> - http://www.iam.unibe.ch/~scg/Teaching/CP/PetriNets/
>
>> Using the Squeakland image, the world menu fits on the screen for me.
>
> Not that I did expect the following but, enlarging the Opera web  
> page to 150% did the job, the menu now fits :)

I suspect that you ran that image manually and saved it  
(accidentally) with some non-default preferences.

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: [Newbies] Re: Accessing projects from a Web page

Klaus D. Witzel
On Sat, 10 Jun 2006 12:45:37 +0200, Bert Freudenberg wrote:

>
> Am 10.06.2006 um 11:29 schrieb Klaus D. Witzel:
>>> This test page assumes you actually use Squeakland's  
>>> SqueakPlugin.image. That image has the "golden" navigator flap enabled  
>>> by default.
>>
>> I believe that is indeed the case, it says 'Squeakland 3.8-05 of 1  
>> September 2005'. I use it for the Petri net demo
>> - http://www.iam.unibe.ch/~scg/Teaching/CP/PetriNets/
>>
>>> Using the Squeakland image, the world menu fits on the screen for me.
>>
>> Not that I did expect the following but, enlarging the Opera web page  
>> to 150% did the job, the menu now fits :)
>
> I suspect that you ran that image manually and saved it (accidentally)  
> with some non-default preferences.

No (did not run the image manually) and yes (saved the image from the  
Opera browser after install+update code from server) and no (non-default  
preferences): downloading a fresh copy from
  - http://squeakland.org/installers/SqueakPlugin.image.zip
this one says 'Squeakland 3.8-05 latest update: #481 Current Change Set:  
Unnamed1' and also has no "golden" navigator flap (but "show shared flaps"  
are enabled on the world menu, as before).

Perhaps a platform (Opera, WinXP) specific difference? Should there be any  
other files (besides SqueakPlugin.image) on startup?

NB: after successfully doing an "update code from server" on the fresh  
copy, when saving the resulting image, FileDirectory startUp does  
DosFileDirectory assureDirectory: 'C:\My Squeak' which raises a debugger  
but, the directory exists (and is populated) and on the next start (browse  
page refresh), #systemInformationString still says update: #481. Saved  
SqueakDebug.log if that is of interest.

/Klaus

> - Bert -


Reply | Threaded
Open this post in threaded view
|

Re: [Newbies] Re: Accessing projects from a Web page

Brad Fuller
Klaus D. Witzel wrote:

> On Sat, 10 Jun 2006 12:45:37 +0200, Bert Freudenberg wrote:
>>
>> Am 10.06.2006 um 11:29 schrieb Klaus D. Witzel:
>>>> This test page assumes you actually use Squeakland's
>>>> SqueakPlugin.image. That image has the "golden" navigator flap
>>>> enabled by default.
>>>
>>> I believe that is indeed the case, it says 'Squeakland 3.8-05 of 1
>>> September 2005'. I use it for the Petri net demo
>>> - http://www.iam.unibe.ch/~scg/Teaching/CP/PetriNets/
>>>
>>>> Using the Squeakland image, the world menu fits on the screen for me.
>>>
>>> Not that I did expect the following but, enlarging the Opera web
>>> page to 150% did the job, the menu now fits :)
>>
>> I suspect that you ran that image manually and saved it
>> (accidentally) with some non-default preferences.
>
> No (did not run the image manually) and yes (saved the image from the
> Opera browser after install+update code from server) and no
> (non-default preferences): downloading a fresh copy from
>  - http://squeakland.org/installers/SqueakPlugin.image.zip
> this one says 'Squeakland 3.8-05 latest update: #481 Current Change
> Set: Unnamed1' and also has no "golden" navigator flap (but "show
> shared flaps" are enabled on the world menu, as before).
>
> Perhaps a platform (Opera, WinXP) specific difference? Should there be
> any other files (besides SqueakPlugin.image) on startup?
On Fedora Core 5, Firefox (v1.5.0.3) the Petri project works fine, and
the plugin test loads and shows the text dialog, but no navigator panel.
Other than the navigator panel not appearing, everything else seems fine.

Opera (Version 9.00 Beta 2): both the plugin test and the Petri image do
not load. I get a blue rectangle, the hourglass and (in the Petri
project) the squeakland "Loading" image. But that's it.. kinda stops
after that. (I stopped using Opera V8 because V9 worked better. )



Reply | Threaded
Open this post in threaded view
|

Re: [Newbies] Re: Accessing projects from a Web page

Klaus D. Witzel
On Sat, 10 Jun 2006 23:58:09 +0200, Brad Fuller wrote:

> Klaus D. Witzel wrote:
>> On Sat, 10 Jun 2006 12:45:37 +0200, Bert Freudenberg wrote:
>>> Am 10.06.2006 um 11:29 schrieb Klaus D. Witzel:
>>>>> This test page assumes you actually use Squeakland's
>>>>> SqueakPlugin.image. That image has the "golden" navigator flap
>>>>> enabled by default.
>>>>
>>>> I believe that is indeed the case, it says 'Squeakland 3.8-05 of 1
>>>> September 2005'. I use it for the Petri net demo
>>>> - http://www.iam.unibe.ch/~scg/Teaching/CP/PetriNets/
>>>>
>>>>> Using the Squeakland image, the world menu fits on the screen for me.
>>>>
>>>> Not that I did expect the following but, enlarging the Opera web
>>>> page to 150% did the job, the menu now fits :)
>>>
>>> I suspect that you ran that image manually and saved it
>>> (accidentally) with some non-default preferences.
>>
>> No (did not run the image manually) and yes (saved the image from the
>> Opera browser after install+update code from server) and no
>> (non-default preferences): downloading a fresh copy from
>>  - http://squeakland.org/installers/SqueakPlugin.image.zip
>> this one says 'Squeakland 3.8-05 latest update: #481 Current Change
>> Set: Unnamed1' and also has no "golden" navigator flap (but "show
>> shared flaps" are enabled on the world menu, as before).
>>
>> Perhaps a platform (Opera, WinXP) specific difference? Should there be
>> any other files (besides SqueakPlugin.image) on startup?
> On Fedora Core 5, Firefox (v1.5.0.3) the Petri project works fine, and
> the plugin test loads and shows the text dialog, but no navigator panel.
> Other than the navigator panel not appearing, everything else seems fine.
>
> Opera (Version 9.00 Beta 2): both the plugin test and the Petri image do
> not load. I get a blue rectangle, the hourglass and (in the Petri
> project) the squeakland "Loading" image. But that's it.. kinda stops
> after that. (I stopped using Opera V8 because V9 worked better. )

Opera (8.most.recent) is easy to convince (I remember I had the same  
problem getting Petri nets going). Make sure that in C:\Program  
Files\Opera\program\plugins you have the following files:
  - Squeak.exe (any recent will do)
  - Squeak3D.dll (provided by the installer, I think)
  - NPSqueak.dll (same)
  - SqueakFFIPrims.dll (any recent will do)
  - SqueakPlugin.image (this one has magic)
The latter can be refreshed from
  - http://squeakland.org/installers/SqueakPlugin.image.zip
It does not matter where the above files come from, you can copy them from  
Firefox's or IE's directories, they don't know which browser vendor they  
are working for and the browser vendors believe that the NP prefix in  
NP*.dll is magic.

I also made sure that my Opera*.ini knows about

application/x-Squeak-Source=6,,C:\Program  
Files\Opera\Program\Plugins\NPSqueak.dll,NPSqueak,sts,|Squeak Source  
Files(*.sts)
application/x-Squeak-Project=6,,C:\Program  
Files\Opera\Program\Plugins\NPSqueak.dll,NPSqueak,pr,|Squeak Project  
Files(*.pr)

Since the time I did the above the Petri nets work for me, so I was  
surprised that other people do see the "golden" navigator panel. But now  
that I learned that it does NOT appear in your case I can sleep much  
better :-)

Thanks for sharing your experience.

/Klaus