[Seaside] Scriptalicious
Ramon Leon
ramon.leon at allresnet.com
Thu Aug 3 18:54:59 UTC 2006
> Hmm... this almost works. It does update multiple elements,
> but it's a bit too simple to do what I need. Here's kind of
> what I'm trying to do, syntax just made up for second add...
>
> html script: (html evaluator
> callback: [ :script |
> script add: (script element id: 'id1'; update: 'price here').
> script add: (script element id: 'id2';
> render: [:r |
> self allPrices do:[:each |
> r text: each.
> r anchor callback:[self bookRate: each];
> text: 'book
> rate']])])
>
> Ok, updating the first element, simple text content, works
> great, but updating the second element, need to insert
> multiple child elements with anchors and callbacks, need a
> rendering context, can't figure this one out.
> Any ideas?
Lucas, any suggestions about this?
More information about the Seaside
mailing list