[Seaside] jQuery ajax: Combining passengers with script
martin.buettner at student.hpi.uni-potsdam.de
Wed Jun 23 16:34:28 UTC 2010
Thanks a lot! That's working. I didn't know that I can pass temporary
variables from one block to another.
Am 22.06.2010 20:49, schrieb Lukas Renggli:
>> If I do this I cannot use the passenger in the script-generating code. Of
>> course, I could save the sent passenger in an instance variable and use that
>> instance variable in the script: callback. But this solution needs two ajax
>> requests. I would prefer one that does it in one request.
> No, that's just one AJAX request. A single request can trigger an
> unlimited amount of secondary callbacks (value callbacks), only the
> primary callback is limited to one (#callback:, #html:, #script:) as
> it generates a response.
> Also you could use a temporary variable instead of an instance
> variable, if you do not want to preserve the passengers beyond the
> rendering method.
More information about the seaside