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
Old 03-02-2007, 06:51 AM link two html pages
Junior Talker

Posts: 1
Trades: 0
Hi everybody ,

I am trying to link two html pages, so that on of them is published and the other is stored in specific drive, i.e. in C drive. So that the path of the second page will not change in all user's computer who will click on the link. I have tried to link the pages using
<a href="Try.htm">click here</a>
This will work fine locally in the same machine. However; it will not work if I upload the page that contains the link to the server.

Can you help me, please ?
fastLady is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-02-2007, 07:20 AM Re: link two html pages
Angelosanto's Avatar
Webmaster Talker

Posts: 554
Name: Danny Angelosanto
Trades: 0
If you upload both files to a server then there should be no problem. One thing you might want to change, even if it doesn't fix the problem, is don't use capitol letters in your file names - it only causes problems. Also, it's safe to use a '.html' extension by now.

But like I said, if these files are both uploaded onto a server and into the SAME folder, then the link should work
__________________
"Those who believe in telekinetics, raise my hand."
-Kurt Vonnegut
_____________________________________
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 03-02-2007, 08:50 AM Re: link two html pages
Skilled Talker

Posts: 57
Name: Dale
Trades: 0
I'd say add a dot/period and a slash (eg; ./) before the filename. That may help sometimes.
__________________
PR4 -
Please login or register to view this content. Registration is FREE

PR3 -
Please login or register to view this content. Registration is FREE
(You get paid real money to post!)
NEW -
Please login or register to view this content. Registration is FREE
- Upload your MP3, WMA, WAV and RA files for free!
Dale is offline
Reply With Quote
View Public Profile Visit Dale's homepage!
 
Old 03-02-2007, 01:22 PM Re: link two html pages
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Quote:
Originally Posted by fastLady View Post
I am trying to link two html pages, so that on of them is published and the other is stored in specific drive, i.e. in C drive. So that the path of the second page will not change in all user's computer who will click on the link. I have tried to link the pages using
<a href="Try.htm">click here</a>
This will work fine locally in the same machine. However; it will not work if I upload the page that contains the link to the server.
So everybody on the network has the file you're linking to, but you want to give them a way to get at it from a web page?

The way you're doing it now, Try.htm must be in the same folder as the other page, and if you're only publishing one of them to the server, that won't work. Try this instead:

<a href="c:\someFolder\Try.htm">click here</a>

Of course you'll have to change out the path, but this should work against any modern browser. Some of the older ones might require this:

<a href="file://c:\someFolder\Try.htm">click here</a>

Maybe there aren't // after the word file:, honestly, it's been so long since I've used that approach, I don't remember.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-02-2007, 08:29 PM Re: link two html pages
Angelosanto's Avatar
Webmaster Talker

Posts: 554
Name: Danny Angelosanto
Trades: 0
Problem is that within the server, the files 'C:' and 'SomeFolder' don't exist. you're much better off just sticking to the filename
__________________
"Those who believe in telekinetics, raise my hand."
-Kurt Vonnegut
_____________________________________
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 03-04-2007, 02:27 PM Re: link two html pages
Novice Talker

Posts: 12
Name: Hazem
Trades: 0
you have to put files relative to your site when uploaded to the server, not to a hard desk like working locally. Think about your site instead of the C:\ and use relative paths like ../filename mean the files is located one path up and so on
__________________

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


Please login or register to view this content. Registration is FREE
hsoftwaremaster is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to link two html pages
 

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.23036 seconds with 12 queries