[Seaside] Using Insertions and Script Aculo
orichards at mail.ru
Mon Sep 24 10:33:17 UTC 2007
Thank you very much for your small "tutorial"..
But can you also help me to ensure, that DOM object exists. I need to check
for existense, before removing it or making insertiong
Lukas Renggli wrote:
>> How to remove it,
> html element id: 'foo'; remove.
>> how to replace its content
> " replace directly using a string "
> html element id: 'foo'; update: 'bar'.
> " replace directly using a rendering context r "
> html element id: 'foo'; render: [ :r | r text: 'bar' ].
> " replace asynchronously using a rendering context r "
> html update id: 'foo'; callback: [ :r | r text: 'bar' ].
>> how to insert object after the existing
> " insert after the given object "
> html update id: 'foo'; insertion: SUInsertion after; callback: [ :r
> | r div: 'bar' ]
> Search the mailing list for #evaluator, if you want to combine
> multiple of these actions into one.
>> Guys can somebody help me to implement the following with ScriptAculo
>> in seaside. I understand many things, but i can't
>> understand how to do it in Seaside :(.
> All in all you can do all the operations you ask for. Usually your can
> make your job much simpler if you just drop to idea to insert/remove
> as small DOM elements as possible, but instead just update a bigger
> surrounding DOM element.
> Lukas Renggli
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
View this message in context: http://www.nabble.com/Using-Insertions-and-Script-Aculo-tf4504363.html#a12857385
Sent from the Squeak - Seaside mailing list archive at Nabble.com.
More information about the seaside