Thread: HTML and different drives
Results 1 to 6 of 6
Include an HTML File into an another html file. Forum: HTML ForumReplies: 1
How to post a variable from HTML to perl and from perl to HTML Forum: CGI Perl ForumReplies: 1
How to post a variable from HTML to perl and from perl to HTML Forum: Website Scripts ForumReplies: 0
06-14-2002, 07:28 PM #1
HTML and different drives
I am just learning how to use HTML. I am working on a computer on a LAN. I want to add an image to my page. The image is stored on the "T" drive and my profile is on the "H" drive. I have tried copying the image to my desktop, my briefcase, and my presonal folder, but all I can ever get is a little box with a red x in it. I can't provide a link to my page because of security on the lan. Any one have an idea?
06-14-2002, 08:15 PM #2
The problem with a LAN, or Intranet setup, is that A) its usually windoze based (urgh!) B) Security is pretty tight, with very low permissions for the average user (in other words, someones browser).
If your page is on the Intranet, then try copying the image you would like to link to into the same directory, and using a relative path (like href="myImage.jpg" instead of href="I:\\myImage.jpg").
If that doesnt work, then please post some more details (source code, directory locations) so we can help.
06-17-2002, 12:12 PM #3
Ok I copied the image to my briefcase on the H drive from the Q drive. I dropped it on my desktop. When I right click on the shortcut and select properties the MS-DOS (yes I am a slave to Bill Gates' whims) name is NMPHlogo.jpeg. I tried using the name as <img src> and as <a href>. Neither worked. I also tried H://windows/Bonerac/desktop/my briefcase/NMPHlogo.jpeg. That didn't work either. Is that enough info or do you need more to help me?
P.S. Down with the cats!
06-17-2002, 01:48 PM #4
In theory, you can link images etc thru different drives, however, the drive its going to read is always going to be local.
Really, try putting the image in the same Folder on the Intranet with your page, then using a relative path i.e. src="myPicture.jpg"
Also, not every browser recognises .jpeg, try renaming it to .jpg.
06-17-2002, 03:01 PM #5
And, if you want to begin making the rest of your HTML and internet life a lot less stressful, get rid of ALL mixed case file and folder names. Make them ALL all lower case in both the HTML encoded file and when uploading to whatever web host server space you obtain.
Remember to use forward slashes "/" instead of backslashes "\" when referencing files within HTML encoding.
Create a minimally named folder (if not a separately partitioned hard drive), such as } or W to keep all your active internet .htm, .html, .gif, .jpg and other associated files. It'll make offline debugging and referencing a lot easier.
06-17-2002, 04:50 PM #6
Thanks, you are life savers. the image was already named .jpg, and my dumb @$$ was typing .jpeg. As soon as I have a little more time, I'll post the page so you can see how it looks