Re: browser url with #... [message #172652 is a reply to message #172646] |
Wed, 23 February 2011 13:06 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Vincenzo Scarpa wrote:
> 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? :(
Fragment identifiers are not part of the HTTP request, they are used
client-side only.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
|
|
|