SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    disable the save dialog box

    hello,
    i would like to disable the "save as dialog box" on some certain areas of our corporate website.

    Such that everytime a user trys to download certain files, it disables it.

    Is this possible and how do i go about it?

    afrika

  2. #2
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not possible with javascript, but you can certainly configure your server to restrict whatever files you choose to those users you authorize.

  3. #3
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    interesting.

    how can this be done in IIS ?

    thanks

  4. #4
    SitePoint Enthusiast Tygatur's Avatar
    Join Date
    Apr 2006
    Location
    Germany
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you don't understand how hypertext works.
    The moment your clients see the content of the page on their screens it's already downloaded and saved to their harddisk !

    First of all, the browser has to download the file from the internet before it can render it (sounds logical). For that purpose the file is saved in the browser cache (some folder that is specific for your browser) and then the browser reads the file from this folder on your harddrive.

    "Saving" the page only means copying it from the cache folder to another location on your harddrive that is easier to memorize.
    to code or not to code ?
    that's too much of a question for a signature.

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,804
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The way that you do it is to configure the web server on your corporate site to not allow access to any domain that you don't want staff to be able to save. If they can't see the site they can't save it, if they can see it then it is already copied to their computer.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •