Thank your
my problem was actually not linked to what i reproduced into the jsfiddle,
it was linked to the fact that i had a Form.Request which was not triggered
when i submitted the linked form using a javascript call
($('my_form_id').submit())
i didn't realize it sooner because someone else changed the submit button
to a js trigger.
So i ended up downloading the json response...
I tried the enhanced form and actually based myself upon most of it.
The headers look ok to me,
anyway my problem's solved my i don't understand exactly why the fiddle
reproduced it to me...
thank you everybody.
Regards,Olivier. 2011/11/10 piotr_cz <[email protected]> > Hi Olivier, > > For me FF 3.5 returns file download response as well. Try inspecting > headers and you'll see there's something wrong going on (POST with > response 'Failed to load source for: http://fiddle.jshell.net/echo/json' > and then another GET response that triggers download.) > > Anyway try the demo from MT Docs: > http://mootools.net/demos/?demo=Enhanced-Form > this is working fine for me. > > What about your implementation? > Piotr > > > On Nov 5, 5:08 pm, Olivier Girardot <[email protected]> wrote: > > Hi everyone, > > I've got a test case here :http://fiddle.jshell.net/7CxgQ/ > > which under chrome works fine, but under firefox and ie > > handles the json response as a "file download" response, > > I'm kinda using Form.Request everywhere in my pages :-/ so i'd be glad > > if someone could tell me what's wrong and what i should do to handle it ? > > (and why it doesn't work the same under chrome/firefox/ie) > > > > Gracias, > > Regards, > > > > Olivier. >
