$("form button"). If the content-disposition is set to attachment, you will just get a Save as dialogue. Is there any way to open the PDF file on the browser inside the success function of the AJAX call with-out doing any page submit In the server side the PDF is not physically generated also. and the 'data' in the success function containing PDF stream. So, also do NOT use window.open for this. The 'inputxml' is containing input parameters for the server to create the PDF. It, also, helps to upload parameters as JSON and to change the content type to application/json (my default).Ī simple form with two input text, one select and a button element. In some browsers the window.open will stay open and blank, which may be annoying for endusers. ![]() ![]() The answer of Jonathan Amend on this post helped me a lot.įor more details, the above source code is able to download a file using a JQuery Ajax request (GET, POST, PUT etc).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |