944,051 Members | Top Members by Rank

Ad:
Sep 12th, 2006
0

Hyperlink troubles

Expand Post »
For some reason when I insert a hyperlink in Dreamweaver MX and upload the page it does not work. The link should take me to my friends site, but when you click the link it tries to find my friends site inside of my site as if it were a page in my site. That causes it to go to "page cannot be displayed". Any thoughts on why it is doing this would greatly help me out.

Thanks
Similar Threads
ATS
Reputation Points: 10
Solved Threads: 1
Light Poster
ATS is offline Offline
41 posts
since Jun 2006
Sep 13th, 2006
0

Re: Hyperlink troubles

Click to Expand / Collapse  Quote originally posted by ATS ...
... when you click the link it tries to find my friends site inside of my site...
That is how I understand link to work, when you click on them they find the destination and display it.

Click to Expand / Collapse  Quote originally posted by ATS ...
as if it were a page in my site.
Or did you mean it tries to open the destination (your friend's site) in a frame on your web page?

Click to Expand / Collapse  Quote originally posted by ATS ...
That causes it to go to "page cannot be displayed". Any thoughts on why it is doing this would greatly help me out.
We would probably have to see your <a href....> tag, but the most likely cause would be that you have it pointing as a relative reference, rather than an absolute reference.
Reputation Points: 22
Solved Threads: 11
Posting Whiz in Training
DavidRyan is offline Offline
229 posts
since Jul 2006
Sep 13th, 2006
0

Re: Hyperlink troubles

Dreamweaver defaults to using relative URLs, so that is probably the problem.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Sep 14th, 2006
0

Re: Hyperlink troubles

How do I change it from a relative URL?
ATS
Reputation Points: 10
Solved Threads: 1
Light Poster
ATS is offline Offline
41 posts
since Jun 2006
Sep 14th, 2006
0

Re: Hyperlink troubles

The second hit on googling:
how to change a relative url into an absolute url
Was here.
Reputation Points: 22
Solved Threads: 11
Posting Whiz in Training
DavidRyan is offline Offline
229 posts
since Jul 2006
Sep 14th, 2006
0

Re: Hyperlink troubles

Click to Expand / Collapse  Quote originally posted by DavidRyan ...
The second hit on googling:
how to change a relative url into an absolute url
Was here.

Oh, for Pete's sake...

instead of
<a href="page.htm">relative link to page</a>

you would use
<a href="http://www.yoursite.com/page.htm">absolute link to page</a>
Last edited by FC Jamison; Sep 14th, 2006 at 2:27 am.
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004
Sep 14th, 2006
0

Re: Hyperlink troubles

I figured it would help if he read the article as well.
Reputation Points: 22
Solved Threads: 11
Posting Whiz in Training
DavidRyan is offline Offline
229 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Site Layout and Usability Forum Timeline: Front Page Question
Next Thread in Site Layout and Usability Forum Timeline: Is it good to place links as references on a websites?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC