Re: Rendering Callbacks during an Ajax callback

"[email protected]" <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
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:[email protected]
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

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.