Hello, Latest code of this class include this comment: "// TODO do we really need these header? (fj)"
Well, for me a little tweak of this header allow me to gain Rails recognition of ajax calls, and so generate a complete and clean QooXDoo/Rails RIA. Maybe it could be the case for other frameworks. In the Rails case, two approximations work to keep the funcionalities of methods and filters related to ajax calls (in Rails, Prototype based). 1) The first is a little tweak in qx.io.Remote.Request.js as follow: Patch: Index: Request.js =================================================================== --- Request.js (revisión: 16379) +++ Request.js (copia de trabajo) @@ -74,6 +74,9 @@ //this.setRequestHeader("X-Requested-With", "qooxdoo"); //this.setRequestHeader("X-Qooxdoo-Version", qx.core.Setting.get("qx.version")); + // NOTE: Allow for Rails ajax call recognition (mansay) + this.setRequestHeader("X-Requested-With", "XMLHttpRequest-qooxdoo"); + // Get the next sequence number for this request this._seqNum = ++qx.io.remote.Request._seqNum; }, =================================================================== This works because implementation of the ActionController::Request#xml_http_request? def xml_http_request? !(@env['HTTP_X_REQUESTED_WITH'] !~ /XMLHttpRequest/i) end 2) A second way is to keep the current header on qooxdoo and override the above method on rails with a pattern like /XMLHttpRequest|qooxdoo/i Personally I prefer the first option. Thanks for your consideration, Reinaldo Silva ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel