[Seaside] Rendering Callbacks during an Ajax callback

jtuchel at objektfabrik.de jtuchel at objektfabrik.de
Sat Feb 11 14:02:04 UTC 2017


Hi Johan,


>> | idToReRender |
>> html orderedList
>> script: (html jQuery this
>> on: ‘click’
>> selector: ‘.mylistItemClass’
>> do: ((html jQuery ajax
>> callback: [:listitemId |  … idToReRender := listitemId ... ]
>> value: (((html javascript alias: ‘event’) access: ‘target’) access: 
>> ‘id’));
>> script: [:s | s << ((s jQuery id: idToReRender) html: [:h | self 
>> renderMyRowWithId: idToReRender ]) ]
>> asFunction: #(event))
>>



What can I say? Apart from a missing bracket and the fact that it is not 
"html jQuery this", but "html jQuery document", your code just works. 
Incredible. Thanks!

If you ever need an idea for a second career, please consider giving 
Seaside/Ajax courses...

Joachim


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          mailto:jtuchel at objektfabrik.de
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20170211/b295a003/attachment.html>


More information about the seaside mailing list