Davis.js allow the developer to define actions to be taken when a user follows links, submits forms, or navigates with the back and forward buttons.
To route code execution, the library utilizes HTML5 history.pushState.
HTML5 pushState allows the routes to stay in place, even if JavaScript is turned off.
In modern browsers (FireFox 4+, Safari 5+, Chrome, iOS Safari 4+, Android Browser 2.2+) Davies.js works as advertised.
In older browser versions, Davis.js will not load, allowing links to behave like they would normally do.
Requirements:
· JavaScript enabled on client side
· jQuery 1.4.2 or higher
What's New in This Release: [ read full changelog ]
· Add support for scoped definition of routes using scope.
· Add support for route level middleware.
· Add support for splat params in route definition.
· Davis.location now accepts an options param, allowing to assign/replace routes silently.
· Changed the signature for creating Davis.Routes, can now just pass a string as the path.
· Closer adherence to the same origin policy when binding to links and forms.
· Fix bug where params in the request object were still URI encoded.