473,394 Members | 1,889 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,394 software developers and data experts.

How to delete temporary files from browser history through code

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 11089
gits
5,390 Expert Mod 4TB
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
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 Expert Mod 4TB
could you post how you call the update? onclick of a link?

kind regards
Sep 27 '07 #4
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 Expert Mod 4TB
try using:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'path?' + (+ new Date);
kind regards
Sep 28 '07 #6
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 Expert Mod 4TB
... 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.