[Seaside] how to use #replaceWith:
Bob Arning
arning at charm.net
Sat Sep 18 13:19:12 UTC 2010
Hi,
I'm trying to figure out how to use #replaceWith:. After many
permutations, still no-go. :-(
I want to render 2 divs. When the first is clicked, I want to replace
the second with something else. Any suggestions?
renderContentOn: html
html div
style: 'height: 44px; width: 65px; background-color: red;';
id: 'bob001';
onClick: (html jQuery ajax html: [ :h |
h render: ((h jQuery id: #bob002) replaceWith: Time now
asString).
]);
with: [html text: 'bob001'].
html div
style: 'height: 44px; width: 65px; background-color: green;';
id: 'bob002';
with: [html text: 'bob002'].
TIA,
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100918/71a96a26/attachment.htm
More information about the seaside
mailing list