[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:

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

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

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

Area
    renderContentOn: html
        "stuff"

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?

Thanks,
RS

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
-------------- 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