How to delete temporary files from browser history through code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thulaseeram
    New Member
    • Sep 2006
    • 23

    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
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #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

    Comment

    • thulaseeram
      New Member
      • Sep 2006
      • 23

      #3
      Originally posted by gits
      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

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        could you post how you call the update? onclick of a link?

        kind regards

        Comment

        • thulaseeram
          New Member
          • Sep 2006
          • 23

          #5
          Originally posted by gits
          could you post how you call the update? onclick of a link?

          kind regards


          Hi,

          I tried with window.open('pa th');
          and
          window.location .href='path';
          thanks
          ram

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5390

            #6
            try using:

            [CODE=javascript]window.location .href = 'path?' + (+ new Date);[/CODE]

            kind regards

            Comment

            • thulaseeram
              New Member
              • Sep 2006
              • 23

              #7
              Originally posted by gits
              try using:

              [CODE=javascript]window.location .href = 'path?' + (+ new Date);[/CODE]

              kind regards



              Oh,
              Thanks gits it is working fine, thanks a lot,
              thanks
              ram

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5390

                #8
                ... 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

                Comment

                Working...