Re: browser url with #... [message #173185 is a reply to message #172658] |
Sat, 26 March 2011 17:24 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Twayne wrote:
> Vincenzo Scarpa typed:
> :: with this code I get the address of the browser:
> :: $url =
> :: 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
> ::
> :: but with this address:
> :: http://www.example.com/example.php#one
> ::
> :: the code above does not work ($url contains only 'http://
> :: www.example.com/example.php').
> ::
> :: How come? :(
> ::
> :: Thanks
> :: Vincenzo
>
> # indicates a bookmark in the document at the URL.
It does not.
> If there is no such bookmark, then it cannot go there and fails.
Bookmarks have nothing to do with this; that misconception aside,
you are correct, but you are missing the point.
Please <http://netmeister.org/news/learn2quote.html>.
PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(at)news(dot)demon(dot)co(dot)uk> (2004)
|
|
|