Deleting temporary internet files with javascript...

Giganews Newsgroups
Subject: Deleting temporary internet files with javascript...
Posted by:  phpninja (phpnin…@gmail.com)
Date: 4 Nov 2004

Greetings,

        I was wondering if it is possible to delete someone's
temporary internet files with javascript? Basically I'm am using a PDF
module called HTML_ToPDF. The pdf module takes some output based on
queries and creates a pdf, and it works great. My problem is, if i
make a change to the data in the database, then rerun that exact pdf
routine (done by clicking a form button that reposts the data), the
pdf that is refreshed in the browser is not the updated data
reflecting the changes i just made. For some reason the data is being
retained in the browsers temporary internet files (cache) for this pdf
module. So I go into Tools ----> Internet Options -----> General
settings tab.. ---> temporary internet files, and I clean them out,
even the ones that are 'offline'. Anyhow i refresh the data again for
the pdf and the updated values show. Which tells me that I somehow
need to delete the user's temporary internet files before this PDF is
processed. I'm not sure if there is a delete file function for JS, but
my only ideas have been something like get a list of the existing temp
files, then writing nothing to the existing files so that they dont
have any data in temp.. has anyone ran into this, or does anyone have
any code that will delete the temporary internet files in Internet
Explorer (please no firefox flames, this has to be for I.E.). Ive seen
some code around for delphi, but javascript is the only conclusion i
have came up with.. Thanks

Regaurds,
phpnin…@gmail.com

Replies