[Seaside] jQuery ajax: Combining passengers with script

Lukas Renggli renggli at gmail.com
Tue Jun 22 17:29:48 UTC 2010

I would try with something along the following lines:

html jQuery ajax
    callback: [ :passengers | " handle your passengers " ]
    passengers: aQueryThatSelectsSomeDomElementsWithPassengers;
    script: [ :script | " generate some javascript code " ]


On 22 June 2010 15:56, Martin Büttner
<martin.buettner at student.hpi.uni-potsdam.de> wrote:
> Hi there,
> I'm using Seaside 3.0 and jQuery UI 1.8.1 (Monticello-rev. 56;
> jQuery-Core-rev 105).
> What I want to do:
> I use passengers to associate some objects on the server with my UI-elements
> on the client. Now I want to send an ajax call to the server, sending a
> passenger along with it. The callback shall return javascript code to be
> executed afterwards.
> Since there is no script:passengers: method on JQAjax, I tried some
> combinations. One idea was to use callback:passengers: and execute the code
> in an onSuccess: method. But the server doesn't seem to return anything
> (although, the comment in callback: says "The primary callback must generate
> a response").
> Can anyone please tell me what is the best practice solution for the
> problem. I hope there is one and I do not have to subclass JQAjax to write a
> new script:passengers: method ;)
> Best regards,
> Martin Buettner
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Lukas Renggli

More information about the seaside mailing list