I use Dreamweaver for building webpages. And sometimes the working folder gets a little cluttered with some jpeg and gif files. I thought it would be clever to mark them with the hidden attribute so they don’t get in my way when i have to move thru the site. However, when that happens, the buttons and links that use those files stop showing up. The link is still active, but the image is gone from the webpage even though the file is still there?
Is there a way around it? And why does it do that? To me, the browser shouldn’t care whether or not a file is hidden, if the file is there then shouldn’t the server serve it?
The server won’t see the file if it’s hidden. That’s what hidden means.
But the file is still there! If i make a file called C:\HAPPY.TXT and i type 12345 over and over again until it is 5 megabytes large, then mark it as hidden, similar to boot.ini, and i open My Computer or do Start> Run and i type in the location and file name, i can bring up the file. How come a web browser can’t do that even though the source code explicitly states the file and its location? What am i missing?
The web browser doesn’t control what you see, the web server does.
On the surface it would seem to simply be a permissions problem.
Presumably either yourself or DW are running a testing web server under your installation of windows. This server will run as a given user (likely either the LocalSystem user or NetworkService user), and also likely it does not have the same file system permissions that your account (presumably an administrator) account has. Ergo, it cannot see files that an Administrator user has made hidden.
I know there’s a lot of “presumably” in there, but there’s not really a great deal of information to go on.