The Ajax calls can also respond to specific status codes, not only a genral "success/failure" scheme. If the server isn't available, you'll get nothing back, btw. ;) Anyway, a possible and "clean" alternative is to use custom HTTP headers (Prototype already does this with support for a JSON header and Prototype version info). You can access custom HTTP response headers by calling the getResponseHeader(name) method on the Ajax response object you'll get for your Ajax.Request callbacks. As mentioned, JSON (http://www.json.org/) support is built-in, read http://development.finetooth.com/?p=7 for more info. -Thomas Am 29.06.2006 um 14:54 schrieb Martinez, Andrew:
|
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
