[Seaside] updating the contents of a div as a side effect ofaliveCallback..

Rick Flower rickf at ca-flower.com
Wed Jan 31 22:27:00 UTC 2007

Ramon Leon wrote:

> Here's the pattern...
> html anyElement
>     onClick: (html updater id: #divYouWantToUpdate; 
>         callback:[:ajax | self renderDivYouWantToUpdateAgainOn: ajax ]);
> with: 'Bla Bla'
> This is why it's important to factor the code well.  Ideally, any part of
> the page you want to ajax update, has it's own rendering method, so you can
> call it normally on the server side for the first page render, and then pass
> the ajax canvas through the same method to live update that part of the page
> whenever you like on whatever javascript event you like.

Thanks Ramon.. I'll keep that in the back of my head if I decide to move 
over to Scriptaculous from the Async side...  In the meantime I'll wait 
to see what Michel says about my issue -- perhaps it's a bug since the 
liveCallbacks were added to the submitButton just the other day..

More information about the Seaside mailing list