Hi, i don't know how can you attach any other file but xml to HTTPresponse. I rather do sth like that:
- load php file which return link to pdf - open new window with pdf file code: $.ajax({ type: "POST", url: "/Portfolio09/scripts/setLang.php", data: param, success: function(html){ window.open(html); } }); On 16 Lis, 18:06, "m.ugues" <m.ug...@gmail.com> wrote: > Hallo all. > I have a problem downloading a file via ajax. > > I contact via ajax a server-side component (i.e. Servlet) that creates > a pdf and attach it to the response. > When I receive the response I cannot pass the control to the browser. > > Any idea hot to make it? > > Kind regards > > Massimo