[Seaside] [ENH] Several extensions

stephane ducasse stephane.ducasse at free.fr
Sat May 21 10:24:44 CEST 2005


Hi

if you really to help avi I think that submitting a mcz file or even  
publishing in the squeak source repository is a better choice.

Stef

On 19 mai 05, at 16:36, Tibben, Andre wrote:

> This fileout contains some extensions I made for Seaside.
>
> 1. Send XML replies to XMLHttpRequest. Besides replacing the  
> innerHtml of en
> element one of the implemented return values allows for generic  
> changes to
> the DOM model. For example you can change the position of an  
> element with
>
>     html elementId: anId
>         dom: [html tag: 'style'
>                 do: [html left: left px; top: top px]]
>
> 2. Use callbacks for live requests instead of making a new  
> continuation.
>
> 3. An override on WARenderLoop to respond to a  
> LiveRenderNotification by
> walking the component-tree calling renderLiveUpdateOn:.
>
> 4. More CSS Style support:
>     html cssStyle: [:s | s origin: 100 @ 200; backgroundColor: 'red';
> otherStyleAttribute: 'solid'];
>         someElement.
>
> The result is: <someElement style="position: absolute; left: 100px;  
> top:
> 200px; background-color: red; other-style-attribute: solid" ...
> I find it mostly useful to provide program defined colors and for
> positioning absolute elements.
>
> 5. Some code from LiveWeb (modified to be a bit more generic  
> useable) to
> place a callback on an element. Use with:
>     self
>         installCallbacks: #('callback1' ...)
>         for: elementId
>         on: html.
> After this you can call element.callback1(args) from javascript.  
> This will
> result in a method called on self that starts with 'callback1' and  
> has the
> right number of arguments to match the number used in the call.  
> After this
> method has finished a LiveRenderNotification is raised so every  
> component
> has a change to add something to the update in renderLiveUpdateOn:.
>
>
> Andre Tibben
>  <<SeasideExtensions.st>>
>
> <SeasideExtensions.st>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
>



More information about the Seaside mailing list