How to transfer contents from Jquery list to PDF

Asked By 0 points N/A Posted on -
qa-featured

 

Hello.  I need to save the contents of a list generated by a query using Jquery.  I would like these contents to be saved immediately in PDF.  How can I do this?

SHARE
Answered By 0 points N/A #106673

How to transfer contents from Jquery list to PDF

qa-featured

Hello Paul McKenzie,

For the contents to be saved immediately in PDF, you will just need to submit your POST via a form as it always is, and then you will add the HTTP header.

To your server in jquery, you will just need to POST the parameters, and them you will be required to generate the binary content on the server and thereafter store it in a cache somewhere for a short while, which will be accessible by using a key that you are supposed to have put in the user's session. A response from Ajax which shows that the process has been successful will then be returned to your page, or alert you if there were an error.

The response you are supposed to get when the process is successful is as follows which will be followed by the server returning the cache content. You are supposed to include the Content-Disposition header:

window.location ="/get/my/pdf";
__

Regards
Clair Charles

 

 

Login/Register to Answer

Related Questions