Core Docs | Additional Modules Docs

sb.browser.hashHistory


@Description: Used to allow for back and forward, bookmarkable navigation with ajax

It tries to load the data from the url after the # whenever the hash changes

e.g. http://example.com/testing#/rest/test would load /rest/test.

First it would fire onloading.
Then it would fire either onLoaded or onPageNotFound
and pass the data loaded from /rest/test to it so that you could do what you would like
@File: browser/hashHistory.js
@Example:
sb.browser.hashHistory.init({
onLoaded : function(r){
        //do something with the data
},
onLoading : function(response){
//show the user they are loading data
},
    onPageNotFound : function(response){

    }
});