[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>