[Seaside] Updating two divs from the same updater?
Peter Osburg
peter.osburg at gmail.com
Wed Oct 10 08:48:39 UTC 2007
Hi,
u need another div around both div's
let's say you have a div id="A_and_B"
so use another rendering method that renders both divs let's say we call it
renderABOn: html
so use the updater
html updater
id: 'A_and_B';
triggerFormElement: 'formId';
callback: [: r | self renderABOn: r. ]
that should help, i think :)
Alejandro Martínez schrieb:
> Hi. I'm using Scriptaculous and Seaside 2.7. Consider this case please.
>
> I have :
>
> select list SOURCE
>
> select list A inside div A
> select list B inside div B
>
> I need to update both A and B with different data when I click an item
> of SOURCE select list.
>
> AFAIK in SOURCE list i can specify one div A or B but not both. The
> following doesn't work for what I need:
>
> html select
> ...
> onChange: ( html updater
> id: 'A';
> triggerFormElement: 'formId';
> callback: [: r | self updateAOn: r.
> self updateBOn: r. ]
> )
>
> How can I update A and B using the same updater? Does anybody know the
> solution?
> Cheers
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list