[Seaside] AJAX

Lukas Renggli renggli at gmail.com
Sun Dec 30 18:23:10 UTC 2007

> I want do this in root component render left menu head and bottom and
> content area. And i want change content with ajax. Sometimes shows new,
> sometimes users account info etc. i look on scriptacolous website but i dont
> find any demo to do this. May be it's problem i dont know whati want to find
> because i think there will be now script to call site skript.php from
> index.php :). But can anybody show me best way to do what i want?

Have a look at the senders of #updater.

You pass it the id of the div that you want to change its contents and
a callback block that renders the contents of that particular div
element. Something like:

html anchor
    onClick: (html updater
       id: 'someid';
       callback: [ :r |
           body := aComponent.
           self renderBodyOn: r ];
     with: 'menu 1'.
html div
    id: 'someid';
    with: [ self renderBodyOn: html ]


Lukas Renggli

More information about the seaside mailing list