Hi,

I have a little HTML dilemma. I am working on a site which uses some
links to leads to anchors on the same page. I have been using <base
href.../> tags to set the base, so that all links are relative.

How do I then create a link to a local anchor, when I am not on the root
page? If I am not on the root page of the site, and there is a link <a
href="#anchor">link</> (and the anchor/id is of course defined), this is
then interpreted by the browser (firefox, IE6) as a link to
http://[base]/#anchor. Note that this is not a problem with presenting
pound-signs when in cfoutput tags -- it is strictly a client/html
problem.

You can see it in action here:
http://www.povertymap.net/publications/
(the links on the top, "On this page")



--
Hugo Ahlenius

-------------------------------------------------------------
Hugo Ahlenius                  E-Mail: [EMAIL PROTECTED]
Project Officer                Phone:            +46 8 230460
UNEP GRID-Arendal              Fax:              +46 8 230441
Stockholm Office               Mobile:         +46 733 467111
                               WWW:       http://www.grida.no
------------------------------------------------------------- 


###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186978
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to