[Seaside] Responding to Ajax call with JSON

jtuchel at objektfabrik.de jtuchel at objektfabrik.de
Tue Dec 31 13:40:50 UTC 2013

Hi There,

I wonder how I could write an Ajax callback that returns an HTTP 200 
response code and a JSOn document as response contents. I am unable to 
find any samples for this.

What do I need that for? I want to integrate the X-editable plugin (or 
write my own) with Seaside. Since in Seaside, Ajax callbacks always 
respond with an HTTP 200 and there is no built-in way of responding with 
error codes, I happily found that X-editable has a mode in which it 
accepts an HTTP200 and then scans a JSON response for the "real" success 
or error info.

Has anybody done that? Maybe even with X-editable? How?


Objektfabrik Joachim Tuchel          mailto:jtuchel at objektfabrik.de
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1

More information about the seaside mailing list