Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: simple a href!!


Message #1 by "Nigel Cooney" <ncooney55@h...> on Tue, 8 Oct 2002 08:12:57
I want to provide a simple link called from a database but cannot get 
around removing the 'local machine' from the address, this means that when 
the links look like http:\\computer\http:\\www.domain.com. Does anyone 
know of a solution?

Thanks...
Message #2 by Imar Spaanjaars <Imar@S...> on Tue, 08 Oct 2002 09:10:57 +0200
I think this is caused by the fact that you are using http:\\. This makes 
the browser not realize it's a full URL including protocol information. 
Therefore, it thinks it's a relative link and appends in to the current 
site. Look in the source and you'll probably just see:

http:\\www.domain.com

Change your database to have your URL's read http:// instead of http:\\ or 
use a replace function at runtime to do the conversion. IMO, it's cleaner 
to solve the problem in the data source, however.

Cheers,

Imar


At 08:12 AM 10/8/2002 +0000, you wrote:
>I want to provide a simple link called from a database but cannot get
>around removing the 'local machine' from the address, this means that when
>the links look like http:\\computer\http:\\www.domain.com. Does anyone
>know of a solution?
>
>Thanks...


Message #3 by Greg Griffiths <greg2@s...> on Tue, 08 Oct 2002 19:02:01 +0100
can you post some code.

At 08:12 08/10/02 +0000, you wrote:
>I want to provide a simple link called from a database but cannot get
>around removing the 'local machine' from the address, this means that when
>the links look like http:\\computer\http:\\www.domain.com. Does anyone
>know of a solution?
>
>Thanks...
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>r-20



  Return to Index