473,471 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to delete temporary files from browser history through code

23 New Member
Hi,
Can any one help me in solving the below problem

How to delete browser temporary files through javascript code
thanks
ram
Sep 27 '07 #1
7 11092
gits
5,390 Recognized Expert Moderator Expert
hi ....

for security reasons you cannot do that with standard javascript ... may be there are ActiveX Controls or advanced Mozilla-privileges that may allow deleting files ... but with standard javascript you cannot do that ... imagine a website that deletes files from your system :) ... nobody wants that ... what is your original problem? you don't want something have cached?

kind regards
Sep 27 '07 #2
thulaseeram
23 New Member
hi ....

for security reasons you cannot do that with standard javascript ... may be there are ActiveX Controls or advanced Mozilla-privileges that may allow deleting files ... but with standard javascript you cannot do that ... imagine a website that deletes files from your system :) ... nobody wants that ... what is your original problem? you don't want something have cached?

kind regards


Actually i am generating RSS_FEED in my site when ever i click on RSS_FEED it is picking from cache not original one, if i refresh the page manually then it is showing the correct data. that is the problem now can u help
thanks
ram
Sep 27 '07 #3
gits
5,390 Recognized Expert Moderator Expert
could you post how you call the update? onclick of a link?

kind regards
Sep 27 '07 #4
thulaseeram
23 New Member
could you post how you call the update? onclick of a link?

kind regards


Hi,

I tried with window.open('path');
and
window.location.href='path';
thanks
ram
Sep 28 '07 #5
gits
5,390 Recognized Expert Moderator Expert
try using:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'path?' + (+ new Date);
kind regards
Sep 28 '07 #6
thulaseeram
23 New Member
try using:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'path?' + (+ new Date);
kind regards



Oh,
Thanks gits it is working fine, thanks a lot,
thanks
ram
Sep 28 '07 #7
gits
5,390 Recognized Expert Moderator Expert
... with that solution we avoid reading the file from local cache through appending a unique value as querystring ... a simple way to achieve that goal :)

glad to help you with that ... post back to the forum anytime you have more questions

kind regards
Sep 28 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ebramcity | last post by:
Hi all I search for a way in javascript to prevent browser from caching my HTML page in its "history" and "temporary files" if there is any ... Thanx a lot.
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...
6
by: Neo The One | last post by:
On my development machine, I often delete all folders/files under C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files. That has not caused me any trouble til now. So now we have...
2
by: yxq | last post by:
Hi, I want to delete the files in "Temporary internet cache" and "History" folder, is it ok to use "File.delete"? What are the true path of "Temporary internet cache" and "History" folder? ...
1
by: Andy Chen | last post by:
Hi, I need to delete all files in Temporary Internet Files, this folder is a virtual folder and can not be accessed like normal folder. How can I get it done? Any ideas? Thanks very much!...
9
by: vighnesh | last post by:
Hi Folks Greetings to you all. I have been dealing a project, in which one of the requirement is to clear FireFox browser history programatically. Can anybody suggest me, how this can be...
4
by: Andrea Scharfe | last post by:
Hi there, I am writing a PHP script which generates some charts using gnuplot. This generates quite a large number of temporary image files. My problem is that I do not know how to delete these...
2
by: Vighneswar | last post by:
Hi All Please let me know is there any way to clear the address bar history ( Typed URLs) of Firefox browser programmatically. Deleting 'index.dat' under profiles folder of firefox will delete...
0
by: wolfsbane | last post by:
Alright, here it is I am trying to write a win32 app in VB 2005 to clean up user's profiles. everything works correctly except for the Delete("directory", True) statement. I get a...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.