[Seaside] How to update XHTML with jQuery

Paul DeBruicker pdebruic at gmail.com
Sat Nov 28 18:59:06 UTC 2009

Damien Cassou wrote:
> Hi,
> I would like to reproduce
> http://book.seaside.st/book/web-20/scriptaculous/ajax/updating using
> Seaside 3.0 and jQuery but can't find the right invocation.

I think you replace this:

onChange: (html updater "<-- added"
                     id: 'items';
                     triggerForm: (html element up: 'form');
                     callback: [ :ajaxHtml | self renderItemsOn: 
ajaxHtml ]);

with this:

onChange: (html jQuery ajax serializeThis;
	script: [:s | s << (s jQuery id: 'items') replaceWith: [:h | self 
renderItemsOn: h]]);

but I am not able to test it to know for sure.

More information about the seaside mailing list