Hi Alice,

I fixed this bug just now in the master branch of qooxdoo. With the new 
method "overrideResponseContentType" of "qx.io.request.Xhr" you can now 
achieve the same as with "overrideMimeType" in native JavaScript code.

So you can clone the qooxdoo repository somewhere on your local disc and 
then change the "QOOXDOO_PATH" in your "config.json" to the repository 
instead of your former SDK download. Then a "clean" and a "source" or 
"build" should make the new method available in your codebase.

However, if you don't want to switch to the master branch you can also 
obtain the native XHR object an operate directly on it. Looks like this:

var url = ...
var req = new qx.io.request.Xhr(url);
req.getTransport().getRequest().overrideMimeType("...");

... but this is generally not recommended [1]. Just make sure that you 
know the implications.

And as I stated in the bug: Please bear in mind that there is no support 
for Internet Explorer because it doesn't implement overrideMimeType(). 
Therefore you should wrap the call with a property check for 
"overrideMimeType" first if you want to use the second approach I mentioned.

[1] 
http://demo.qooxdoo.org/3.0/apiviewer/#qx.io.request.AbstractRequest~getTransport

Regards
Richard

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to