SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: disable the save dialog box
-
Jul 29, 2006, 17:33 #1
- 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
-
Jul 29, 2006, 18:34 #2
- 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.
-
Jul 29, 2006, 23:42 #3
- 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
-
Jul 30, 2006, 06:41 #4
- 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.
-
Jul 30, 2006, 13:36 #5
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- 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