jQuery: The Write Less, Do More JavaScript Library

History

Average rating
(7 votes)

Plugin is for Ajax-driven pages to have back/forward navigation and to allow bookmarking.

Sample code:

function callback(hash)
{
    // do stuff that loads page content based on hash variable
}
$(document).ready(function() {
    $.history.init(callback);
    $("a[@rel='history']").click(function(){
        $.history.load(this.href.replace(/^.*#/, ''));
        return false;
    });
});

Releases

Official releasesDateSizeLinksStatus
1.0.0-beta-12008-Feb-294.99 KBRecommended for 1.2.xThis is currently the recommended release for 1.2.x.