So, I have links that have a href value for ajax loading and an onclick value for a link to the top of the page. When I click the links, the ajax content is loaded, and the URL shows the link to the anchor, but the page does not move to the anchor.
I tried both in show.html.erband in bindings index.html.erb, which visually show where they should be for testing, when I scroll up, but the page does not move to this place. Any ideas what could be causing this?
show.html.erb and index.html.erb
<a name="#posts_top">love and kittens</a>
When you click on the screen, the browser URL is visually displayed:
http://localhost:3000 => http://localhost:3000/
However, the content loads and the page only slightly skips to accommodate the new content, but does not move the anchor.
Any thoughts would be greatly appreciated!
thank