[Seaside] Re: Problem with Scriptaculous

Lukas Renggli renggli at gmail.com
Mon Jun 11 06:15:12 UTC 2007

> > I could not find a way to get rid of the call to toggle, and even when I
> > hacked the code to allow SUElement-#method to return nil,
> > Element('workflow)['offsetTop'] didnt seem to work. So I ended up using
> Yes these default methods are nasty. This is not the first time I got
> bitten. These methods date back to the very first versions of
> Scriptaculous, where the JavaScript framework was not that composable
> at all. Nowadays this sort of contradicts the free composability of
> the elements. I will try to refactor that, let's see if this can be
> done without breaking some older code.

I published a first try at this refactoring. If you are on Seaside 2.8
you can give it a try, it should be now much simpler to do what you
want. Also the generated JavaScript is simpler and the overal design,
so I think it is a good thing.

Name: Scriptaculous-lr.198
Author: lr
Time: 11 June 2007, 8:10:32 am
UUID: 8a051271-9d8f-4ade-a25e-f499d5c569a8
Ancestors: Scriptaculous-lr.197

- refactored Element, Form and FormElement to be more extensible and
to better match the new way of prototype programming
- fixed and updated some tests
- added some missing actions
- WARNING: these elements don't have default actions anymore

Lukas Renggli

More information about the Seaside mailing list