Search code examples
jqueryajaxhashchangebrowser-state

jQuery History Plugin works in Chrome?


The jQuery History Plugin (http://www.mikage.to/jquery/jquery_history.html) is said to work with Chrome:

http://github.com/tkyk/jquery-history-plugin

Supported Browsers IE6, IE7, IE8, Firefox3, Safari4, Safari5, Chrome4, and Chrome5

but then when i go to the top link mentioned above, if I click on load 1, load 2, and then load 3, the back button will change the URL's hash portion to #2, but the "Loaded html:" section still shows "3"… anybody know why?


Solution

  • Go here for a current sample page: http://www.serpere.info/jquery-history-plugin/samples/

    It works in Chrome ;) As Pointy, well, points out, the code on that page isn't current, there are several changes/fixes in GitHub since then. You can get the latest source here.

    Note that the API changed (for the better I think) since that old page, for example: