[Seaside] how to catch a XmlHttpRequest to evaluate a callback

Lukas Renggli renggli at gmail.com
Fri Aug 17 16:51:02 UTC 2007

> If I´d want to port a javascript library, say SmartClient, YUI, Dojo, etc.
> (not Prototype compatible), how would I catch the XmlHttpRequest and
> evaluate a block with a canvas as argument and reply to the client what has
> been "rendered" inside that block? (I suppose this is what Scriptaculous
> does through callbacks but I cannot find where and how).

Have a look at SUAjax, this is where all magic is happening. The
interesting methods are #setCanvas: and #process. The first method
creates an URL with the assigned rendering callback #process. Also
interesting is #callback:value: that modifies the URL to include
additional callbacks to pass back values from Javascript to Smalltalk


Lukas Renggli

More information about the seaside mailing list