Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
HTML file saved to disk and file path errors
Old 05-26-2006, 09:05 AM HTML file saved to disk and file path errors
Junior Talker

Posts: 4
Trades: 0
I created a technical support document on my home pc and then saved it to a disk. The file paths for all my documents and pictures is:

C:\Documents and Settings\Administrator\Desktop\Technical Training\PDF\Vista-15P.pdf">Vista-15P Schematic

when I try to run the disk from a another computer the main folder is D:\Technical Training\training.html this in turn causes all of my other links to be broken. Is there a way to shorten or change the path names to my links so they will work on any computer?

The HTML document is in a folder called Technical Training the the PDF's and Pictures in a files called PDF and Pictures which are in the main folder Technical Training. Any help is appreciated.
jbuchanan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-26-2006, 10:24 AM Re: HTML file saved to disk and file path errors
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Is this HTML file going on a Web server or your personal pc ??

If on a server, you need to put the docs in a folder on the server and link to them using a relative path.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-26-2006, 01:10 PM Re: HTML file saved to disk and file path errors
Junior Talker

Posts: 4
Trades: 0
No these disk will be used on local PC's no webpage usage or anything like that. I am just trying to figure out how to make a commom path that will allow them to work on whosever PC they run in on.
jbuchanan is offline
Reply With Quote
View Public Profile
 
Old 05-26-2006, 01:15 PM Re: HTML file saved to disk and file path errors
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Ok.. gotcha.. you're going to put these on CD.

If I were going to do this, I would put the html file in one folder and then make a subfolder underneath it for all the documents.

In your html file your links to those documents would be like this:
<a href="documents/xxxxxxxx.pdf">PDF name</a>

Does that help?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-26-2006, 06:54 PM Re: HTML file saved to disk and file path errors
Junior Talker

Posts: 4
Trades: 0
I figured it out. my mistake was using the entire file path, unfortunately the file path in my code pointed to drive C: on my pc. I replaced the first half of the file path with two .. (periods) so the only part of the path left was the folder name(Technical Training) then the sub-folder (PDF) and finally the file name (Vista-15P.pdf) so it looks like this now:

<a href="..\Technical Training\PDF\Vista-15P.pdf">Vista-15P Installation Manual</a>

Hope this might help others. Thanks for the responses Ladynred
jbuchanan is offline
Reply With Quote
View Public Profile
 
Old 05-27-2006, 01:09 PM Re: HTML file saved to disk and file path errors
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
YW
It's called a relative path.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HTML file saved to disk and file path errors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28043 seconds with 12 queries