https://github.com/vanng822/jhistory
jQuery plugin for handling ajax request history.
https://github.com/vanng822/jhistory
Last synced: 2 months ago
JSON representation
jQuery plugin for handling ajax request history.
- Host: GitHub
- URL: https://github.com/vanng822/jhistory
- Owner: vanng822
- Created: 2012-04-01T13:17:35.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-01-06T14:39:28.000Z (over 12 years ago)
- Last Synced: 2025-12-26T10:47:17.291Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
### $.history.init(callback)
Should call it first and good just after the page is loaded. Callback is your ajax-handler
$.history.init(function(url) {
// do your ajax call and update content when getting response
console.log(url);
});
### $.history.load(url)
$.history.load("/something");
### Binding the links example
$("a").bind("click", function() {
$.history.load(this.href);
return false;
});