[Seaside] How can I invoke the callback of an anchor using jQuery?

Jan van de Sandt jvdsandt at gmail.com
Mon Mar 14 10:49:57 UTC 2011


If I have an anchor with a callback:

html anchor
   callback: [ self doSomething ] ;
   with: 'DoIt'.

Now I want to use jQuery to update only part of the page instead of a full
page reload:

html anchor
   callback: [ self doSomething ] ;
   onChange: (html jQuery ajax script: [ :s |
      s << (s jQuery: 'mydiv')
         html: [ :r | self renderMyDivOn: r ] ]) ;
   with: 'DoIt'.

How do I make sure that the callback is performed before the render method
is executed? With form elements you can use serializeThis but I guess that
doesn't work for anchor elements.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110314/c5d11b09/attachment.htm

More information about the seaside mailing list