Le 31 janv. 2015 22:37, "Mircea S." <mircea@unom.ro> a ��crit :
>
>
> Seaside on Pharo - Why the weird jQuery integration syntax compared to Scriptaculous?
>
> Ex1:
>
> html scriptaculous sortable onUpdate: (html scriptaculous... etc).
>
> html jQuery new sortable onStop: (html jQuery... etc).
>
> Ex2:
>
> html scriptaculous effect id: helpId; toggleAppear.
>
> (html jQuery id: helpId) slideToggle: 1 seconds.
>
> The way jQuery and Scriptaculous were integrated 'seems' similar. Can anyone explain what design change took place between the two and it's effect on syntax?
>
> PS. Especially in the last example.Mostly because that is how jQuery works.
This is mapping the jQuery API.
A good trick is to halt around those calls and inspect what the expression between parentheses gives.
This helped me tremendously in understanding how jQuery worked with Seaside. Docs are quite shallow in that area but the system works very well.
Check the tests and JQWidgetbox for a ton of samples.
HTH
Phil>
>