JQuery best practice for adding URL values ​​with forward / back button support

I delved into the Internet and did not find any recent articles on adding hashes and values ​​to URLs with some mojo baked in.

I am working on a web application, and my ultimate goal is to add a hash to the URL for the “pages” and add a value after that, indicating which video on the “page” is active. With it, I will include bookmarks and a direct link to the video on the page. I.E.localhost#pageTwo?videoTitle

Ben Alman seems to have jQuery BBQ + Hashchange the best answers ... But they are becoming obsolete, and there may be a better answer that I cannot find.

Thanks for your advice!

+3
source share
1 answer

The knockout.js single-page tutorial uses a plugin called Sammy.js . He has quite a few mojo baked in, more than I could wrap my head in. I just used Sammy for a knockout tutorial, but it was very simple. Check it out, maybe this will work for you. Although, to be honest, I have not tried either jQuery BBQ or Hashcage.

Come back, let me know how this happens.

0
source

All Articles