Href to .PDF file

Topics: Developer Forum
Aug 12, 2013 at 7:54 PM
When I do oResponse.Redirect(lcLogicalFile) where 'lcLogicalFile' is the http path to a PDF file (in AVFP temp folder), a new window opens with just 'undefined' as its content.

It's only when I click refresh button that the download (save/cancel) prompt appears. Anyone seen/solved this before?

This does not happen with pdfrun.print2pdf where the download prompt comes up as soon as the page loads.
Aug 18, 2013 at 4:06 AM
This problem is specific to Jquery mobile. I believe it is due to the Ajax call that JQ mobile makes on submit ( rather than the normal browser submit).

To fix the problem, we need to block Jquery Ajax call.

I used data-ajax="false" in the link calling the page .. that had the oResponse.Redirect(lcLogicalFile).