Welcome Guest, Not a member yet? Register   Sign In
how to read URL hash?
#7

[eluser]@robertotra[/eluser]
Actually the url 'http//yoursite.ext/#/var1/var2' is equivalent to 'http//yoursite.ext/index.php#/var1/var2', because it refers to an anchor inside the index page.

The problem is that the whole fragment part (the one after the sharp sign '#') is not even sent by http headers to the server, because it is meant to be used by the client browser to locate the internal anchor inside the document: that's why you cannot use the parse_url associative array to manage it (you should already have the full url to do so).

The problem would seem apparently without solution unless you recognize that the anchor part can be retrieved by use of javascript inside the client browser: so you have to use AJAX to retrieve it and then push related content to the client.

Cheers
Roberto



Messages In This Thread
how to read URL hash? - by El Forum - 02-04-2012, 03:22 AM
how to read URL hash? - by El Forum - 02-04-2012, 03:27 AM
how to read URL hash? - by El Forum - 02-04-2012, 03:30 AM
how to read URL hash? - by El Forum - 02-04-2012, 03:42 AM
how to read URL hash? - by El Forum - 02-04-2012, 04:06 AM
how to read URL hash? - by El Forum - 02-04-2012, 04:42 AM
how to read URL hash? - by El Forum - 02-04-2012, 05:44 AM
how to read URL hash? - by El Forum - 02-04-2012, 05:48 AM
how to read URL hash? - by El Forum - 02-04-2012, 06:41 AM
how to read URL hash? - by El Forum - 02-04-2012, 09:09 AM
how to read URL hash? - by El Forum - 02-04-2012, 09:46 AM
how to read URL hash? - by El Forum - 02-04-2012, 09:48 AM
how to read URL hash? - by El Forum - 02-04-2012, 10:01 AM
how to read URL hash? - by El Forum - 02-04-2012, 10:08 AM
how to read URL hash? - by El Forum - 02-04-2012, 04:58 PM
how to read URL hash? - by El Forum - 02-04-2012, 10:07 PM
how to read URL hash? - by El Forum - 02-04-2012, 10:33 PM
how to read URL hash? - by El Forum - 02-04-2012, 10:34 PM
how to read URL hash? - by El Forum - 02-04-2012, 10:39 PM
how to read URL hash? - by El Forum - 02-04-2012, 10:42 PM
how to read URL hash? - by El Forum - 02-04-2012, 11:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB