[Seaside] jQuery callbacks with Announcements

Robert Sirois watchlala at hotmail.com
Mon Jul 6 17:21:54 UTC 2009

I have a layout structure that looks roughly like this:

    renderContentOn: html
        html render: self content. "MainPage new"

    renderContentOn: html
        html render: self map. "Map new"

    renderContentOn: html
        html render: self content. "Area new"

    renderContentOn: html

I also have an announcement on 'Map' that changes the content to, say, "Province new".

Hitting a link with a callback, ie.: "self session announce: (TOCAnnounceChangeMap on: TOCProvince new)" still renders the original initialized component ("Area new").

Am I correct in deducing that when the page is reloaded it creates a new instance of "Map" and therefore does not render what was saved in the 'content' variable? If so, can I use jQuery to do this with announcements? And, how would that look?


Lauren found her dream laptop. Find the PC that’s right for you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090706/f1bac52a/attachment.htm

More information about the seaside mailing list