/    Sign up×
Community /Pin to ProfileBookmark

PDF in Iframe won’t reload.

Hey All,
I have a dynamically genereated pdf, which loads for preview into an iframe where (if the preview of the PDF proves unsatisfactory) upon closing/hiding the pdf_preview_iframe to re-generate the pdf, the iframe.src is re-set to about:blank, and the PDF is DELETED (PHP).

That’s all good, however once the PDF is re-created and pdf_preview_iframe is once again displayed with the iframe.src=”Untitled.pdf”, the PDF displayed within the Iframe is NOT the newly re-created Untitled.pdf, but the original Unsatisfactory Untitled.pdf which has in fact been deleted, and is now replaced anew.
WTF??? How would I ensure the PDF file being loaded is the current file, and not the first one loaded, now read from cache instead of the specified file?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @tjmcd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...