How Can I Move To An Anchor On A Page When I'm Using Sammy.js?
Possible Duplicate: How to scroll HTML page to given anchor using jQuery or Javascript? I'm using Sammy.js, and it handles all the client-side URL navigation. I want to navigate
Solution 1:
Sammy doesnt automatically trigger the route, so in your handler you need to add:
hash = window.location.hash
if(hash != '') {
window.location.hash = hash;
}
Post a Comment for "How Can I Move To An Anchor On A Page When I'm Using Sammy.js?"