473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Deleting temporary internet files with javascript...

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,
ph******@gmail.com
Jul 23 '05 #1
1 10184
phpninja wrote:
Greetings,

I was wondering if it is possible to delete someone's
temporary internet files with javascript?
No. You can not manipulate file on the local file system in the default
security environment.
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.
When you build the URL you forward the end-user to, add something random
to the end of it:

Response.addHeader("Location", "yourFile.pdf?ts=" + (+new Date())); //
example only
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'.
What if I'm not using Internet Explorer, then even if you could delete
files from "Temporary Internet Files" it wouldn't do you any good.
Ive seen
some code around for delphi, but javascript is the only conclusion i
have came up with.. Thanks


Fix this on the server, where it should be fixed. Again, this is done by
appending something to the URL of the generated PDF to make it unique,
even if it's the same name.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
3
by: Jim | last post by:
Is it possible to read the Temporary Internet Files folder using C#? I'm messing with FileIO (newbie here) and everything seems to work fine until I try to read the list of files in this Temporary...
3
by: Rajiv Das | last post by:
VS 2003, XP SP2 ------------------------------------------------------------ DirectoryInfo temporary = new DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));...
0
by: VZUmar | last post by:
Hi I am using IWebBrowser2 in my VC++ windows Application, My application uses browser control to navigate through different web pages. IE of machine has Security setting "Empty Temporary Internet...
7
by: Norton | last post by:
Hi all, I would like to know if there is any method in asp or asp.net to direct the browser to download a file into the Temporary Internet Files directory so that i can make use of vb script to...
4
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with...
6
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
1
by: Manish | last post by:
Hi all, Can any one plz suggest me how i can delete my temporary internet files within my Asp.net page. I am using C# as the code behind lang. Indeed, i have flash inserted on my .net page,...
5
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.