Re: Rendering Callbacks during an Ajax callback
Johan Brichau <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Hey Joachim, It you do “html jQuery document” instead of “html jQuery this”, you are attaching the handler to the document. Do you mean that this is needed in your case, or did it not work with “this” ? Because it should work with “html jQuery this” if all your items are below that orderedList The missing bracket is indeed the result of programming in the mail app :) cheers Johan > On 11 Feb 2017, at 15:02, [email protected] wrote: > > 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] <mailto:[email protected]> > Fliederweg 1 http://www.objektfabrik.de <http://www.objektfabrik.de/> > D-71640 Ludwigsburg http://joachimtuchel.wordpress.com <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 _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside