Link to home
Start Free TrialLog in
Avatar of ivron001
ivron001

asked on

HTML embed tag not refresh PDF file

I have a simple HTML embed tag shown below...

<embed id="pdf" width="700" src="printjobs/out/1.pdf" height="850"></embed>

The content in the PDF file is created dynamically using jsp backend. The problem is that once a filename is used it does not refresh the file to show the current content. The previous content is locked in memory. I can delete the temp file and it will work once then get stuck again. Any suggestions or better yet offer an inexpensive solution for displaying PDF files without using Adobe.

This is a jsp application that must support IE7 and above. I am currently testing with IE7

Thanks
rf
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<<Since you browser will cache a resource by default>>
I meant that your browser will cache the response to a URL query by default, and by appending a new number every time, you are creating a new query only
Avatar of ivron001
ivron001

ASKER

Thanks Genius... I am actually using a simular approach by attaching a version number to the end of the file. Your method is better because I don't have to manage the deletion of old files. I would prefer to somehow replace and use the updated copy if possible. A lot of print jobs are ran in a day and I don't know what type of effect creating so many versions of the same file will have over time since the previous versions still exist in memory. I am going to run some test and see.

Sorry gurvinder372... I just looked at my response again and noticed that your rank is Genius and not your nickname. Hope I did not offend you by calling you that. I have tried a few more things but yours still is the best solution so once again thanks so much for responding. I am going to go with your solution.