|
Problem displaying PDF content
Hi all,
I need to display page with content-type='application/pdf', when it comes to browser, the browser displays a set of characters instead of the correct page.
I know this is because I put the page in <div> tags using javascript's innerHTML. The reason I'm doing this is because I use Ajax to send request and when the response is coming I put the response text in <div> to avoid entire-page refresh.
Is there any other way to display PDF content resulting from Ajax response ?
Any advice would be greatly appreciated.
Best Regards,
Setya
|