Welcome Guest, Not a member yet? Register   Sign In
Hash in url using redirect function
#3

[eluser]Freeze Dried Pop[/eluser]
Not really I want to go to the article page and the comments will all have ids like so:

<code>
<div class="comment" id="comment_12">
My comment!
</div>
<div class="comment" id="comment_13">
Another comment!
</div>
</code>

So when I go to:

mydomain.com/blog/article/3/article-title.html#comment_13

The page (in most browsers) will automatically scroll down to the div with id "comment_13" once its loaded.

Which is why it needs to be in a hash not as part of the url


Messages In This Thread
Hash in url using redirect function - by El Forum - 03-31-2011, 05:31 PM
Hash in url using redirect function - by El Forum - 03-31-2011, 05:41 PM
Hash in url using redirect function - by El Forum - 03-31-2011, 05:55 PM
Hash in url using redirect function - by El Forum - 03-31-2011, 06:16 PM
Hash in url using redirect function - by El Forum - 04-01-2011, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB