Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Base url and anchor tag



Hello!

Because some of my visitors are using rather outdated browsers, those visitors/browsers seem to have problems resolving relative URLs on my pages. So, I thought it might be a good idea to introduce the base URL tag on all of my pages. Unfortunately, this breaks some JavaScript that is triggered by common anchor tags.

For example:
http://www.nikehydraulics.se/products/test_page_gb.php? productMaingroup=1&productSubgroup=10


On this page I have an anchor like:
<a href="#detailed" onClick="MM_showHideLayers ('detailedData','','show','commonData','','hide')">Detailed data</a>


Test the page by clicking on the tab saying "Detailed data". As far as I can see, the anchor tag is "translated" into: http:// www.nikehydraulics.se/products/test_page_gb.php#commonData
The request query is stripped off. Is this behaviour correct?


Is the complete URL including the request query essential for resolving relative URLs?

I can find anything in W3C specs (http://www.w3.org/TR/html4/struct/ links.html#h-12.4) about including request queries. Blind?

Any ideas?
/frank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.