Welcome Guest, Not a member yet? Register   Sign In
anchor and MVC
#4

[eluser]Ajaxian64[/eluser]
Thanks titoneo for your reply,
My intend is not really JUST loading another page but alsoto scroll to the specified anchor in the new page (to display the new page starting at the anchor).
exactly the same behaviour as (in pure HTML):
in page1 there is
Code:
<a href='page2.html#myAnchor'>more info</a>
in page2, somewhere in the page (for instance at the end)
Code:
<h2 name='myAnchor'>more info on this topic</h2>
When the page2 is loaded, the page is displayed automatically at the anchor (myAnchor)
And I don't know how to achieve this with CI
----
I know that in my controller I should have something like you described, but I don't know how to pass to the view the fact that it must display not at the begining but at the anchor position.
Code:
<h2 name='myAnchor'>more info on this topic</h2>


Messages In This Thread
anchor and MVC - by El Forum - 07-15-2010, 09:58 AM
anchor and MVC - by El Forum - 07-15-2010, 11:02 AM
anchor and MVC - by El Forum - 07-15-2010, 11:26 PM
anchor and MVC - by El Forum - 07-16-2010, 12:17 AM
anchor and MVC - by El Forum - 07-16-2010, 01:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB