Arbiter is a super-lightweight enhancement library for your html5 apps. This isn’t a catch-all-own-the-world solution like History.js by balupton
DO NOT USE. This project is not maintained.
To be used with ender and being dependent upon a dom utility, event, and ajax libs, it’s as simple as calling the $.change function with the path you’d like to load.
$('body').delegate('#slider a', 'click', function (e) {
e.stop()
$.change(this.href)
})
$('body').delegate('#slider a', 'click', function (e) {
e.stop()
$.change(this.href, function (data) {
// do cool animation stuff here
})
})
$('body').delegate('#slider a', 'click', function (e) {
e.stop()
$.change(this.href, { method: 'POST', type: 'json', function (data) {
// do yo’ thang with json
})
})
- Test reverse callbacks (for history.back())
- Clean up code
- Write tests
- Test browsers
- Eat a doughnut