[Seaside] Pharo 2.0 scriptaculous does not work

Johan Brichau johan at inceptive.be
Fri Jun 7 08:13:06 UTC 2013


Hi Sabine,

We are working on fixing the configs.

In the meantime, if you open the monticello browser on the Zinc repository and you load all the latest packages of Zinc, it really should work.
I had exactly the same problem yesterday and this fixed it.

Johan

On 07 Jun 2013, at 10:09, Sabine Knöfel <sabine.knoefel at gmail.com> wrote:

> Hi Sven,
> 
> 1) load Seaside config
> 2) WAComponent subclass: #TestView
> 	instanceVariableNames: ''
> 	classVariableNames: ''
> 	poolDictionaries: ''
> 	category: ''
> 3) TestView>>renderContentOn: html
> 	html button
> 		onClick:
> 				(html prototype evaluator
> 						callback: [ :script |
> 									self halt.
> 									2 inspect ];
> 						return: false);
> 		with: 'Inspect'
> 4) (ZnZincServerAdaptor port: 8083) start.
> 5) (WAAdmin
> 		register: TestView
> 		asApplicationAt: 'test')
> 		addLibrary: PTDevelopmentLibrary;
> 		addLibrary: SUDevelopmentLibrary
> 
> 6) In your browser, http://localhost:8083/test
> Clicking at the button should start the debugger but that does not work.
> In 1.4. that worked.
> 
> I am not sure perhaps it is me making sonething wrong I am not sure if
> I did everything correct.
> Advanced Seaside stuff is hard for me, too....;-)
> 
> Sabine
> 
> On Fri, Jun 7, 2013 at 9:37 AM, Sven Van Caekenberghe <sven at stfx.eu> wrote:
>> Hi,
>> 
>> On 07 Jun 2013, at 08:39, Sabine Knöfel <sabine.knoefel at gmail.com> wrote:
>> 
>>> Hi Johann,
>>> 
>>> can you please tell me exactly which versions to load?
>>> 
>>> After loading Seaside from config browser in a new 2.0 Image, I have
>>> ConfigurationOfZincHTTPComponents-SvenVanCaekenberghe.48 (newest) which loads
>>> Zinc-Seaside-SvenVanCaekenberghe.37 (not newest)
>>> 
>>> Loading then
>>> Zinc-Seaside-SvenVanCaekenberghe.40 (newest) does not help
>> 
>> Some recent changes to Zinc apparently resulted in some compatibility problems with Seaside. We fixed already at least one of them. For me, Seaside 3.1 in Pharo 2.0 now seems to work OK.
>> 
>> Now, ConfigurationOfZincHTTPComponents does _not_ specify which version of Zinc-Seaside should be loaded. It is not even in the config. It is Seaside that depends on Zinc and the adaptor, the other way around in not possible. It seems that somehow, the latest Zinc was loaded and not the latest adaptor, which matches it.
>> 
>>> Both does not work for scriptaculous.
>> 
>> How can I easily see what goes wrong ? Please keep in mind that advanced Seaside stuff is hard for me...
>> 
>> Sven
>> 
>>> Sabine
>>> 
>>> 
>>> On Thu, Jun 6, 2013 at 3:57 PM, Johan Brichau <johan at inceptive.be> wrote:
>>> Sabine,
>>> 
>>> You are probably using the Zinc-Seaside adapter?
>>> If you load latest Zinc packages, this bug will go away.
>>> 
>>> Johan
>>> 
>>> On 06 Jun 2013, at 13:02, Sabine Knöfel <sabine.knoefel at gmail.com> wrote:
>>> 
>>>> I am a little bit confused and need your help.
>>>> 
>>>> Yesterday I moved from Pharo 1.4 to Pharo 2.0.
>>>> (In Pharo 1.4. I used the one-click-package).
>>>> 
>>>> After moving to 2.0, first it seemed that all worked but now I have the
>>>> following problem:
>>>> 
>>>> Buttons like this:
>>>> 
>>>>      html button
>>>>              onClick:
>>>>                              (html prototype evaluator
>>>>                                              callback: [ :script |
>>>>                                                                      self halt.
>>>>                                                                      2 inspect ];
>>>>                                              return: false);
>>>>              with: '??'
>>>> 
>>>> Dont work (also some other things but I assume that all has the same
>>>> reason).
>>>> Click it - nothing happens.
>>>> 
>>>> After some investigation I found out that the scriptaculous example
>>>> http://localhost:8083/javascript/scriptaculous
>>>> does not work either.
>>>> Instead of counting it re-renders the page itself again within the  example.
>>>> 
>>>> I took the fresh 2.0. installation (windows) and loaded Seaside and
>>>> JQueryWidgetBox.
>>>> 
>>>> <script src="/files/PTDevelopmentLibrary/prototype.js"
>>>> type="text/javascript">
>>>> <script src="/files/SUDevelopmentLibrary/scriptaculous.js"
>>>> type="text/javascript">
>>>> Is in my html code.
>>>> 
>>>> Possibly there is somtehing more to load now?
>>>> Possibly scriptaculous is not the reason?
>>>> 
>>>> Took me several hours now, help would be fine.
>>>> Sabine
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context: http://forum.world.st/Pharo-2-0-scriptaculous-does-not-work-tp4691931.html
>>>> Sent from the Seaside General mailing list archive at Nabble.com.
>>>> _______________________________________________
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list