Hello,
I am trying to submit a form that calls PHP which generates a PDF file
and shoots it back to the user. When I do it using GET directly in the
browser address bar it works. However when I submit the form with
Prototype (either POST or GET) it doesn't:
$('form_pdf').request({ parameters: params });
I see the response headers in firebug set correctly as ' application/x-
download' (which are set in the back-end). Furthermore, the response
tab in the firebug console shows the actual contents of the PDF file
(flat-text gibberish).
It must be something trivial, perhaps setting some parameter for the
request method. Does Prototype somehow override the headers when it
receives responses to its AJAX requests?
If anyone has ever dealt with a similar issue, any pointers are
greatly appreciated.
Regards,
Max
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---