Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
193
rated 0 times [  200] [ 7]  / answers: 1 / hits: 41384  / 13 Years ago, sat, june 11, 2011, 12:00:00

I am designing a one page browser based web application.



JQuery is already being used in my application. I am currently planning to use KnockoutJS for data-binding and UI management. However I have used Backbone.js in past, and I have been quite impressed with the routing facilities provided by the controller layer.



I have also looked into some JQuery-based solution like pathjs for client side routing.



It would be great if someone could offer suggestions and guidelines for choosing a proper routing system.



I am not willing to use Backbone.js instead of KnockoutJS because of the excellent data-binding facilities of KnockoutJS.


More From » jquery

 Answers
1

After going through a bit of exploration I have found the solution.
@Eisenhauer Backbone's routing facilities are awesome, but what if I am not using Backbone.
As I outlined in my question, I am already using KnockoutJS that provides me a client side MVVM model and so its not really a good idea to put an additional MVC implementation in the same page.



For people looking for a standalone routing solution, pathjs is a simple and elegant solution.



A more flexible, powerful and standalone routing solution is Crossroads.js available at http://millermedeiros.github.com/crossroads.js/.
It is very nicely documented and really powerful,so can be adapted to any set of requirements.


[#91757] Thursday, June 9, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lara

Total Points: 462
Total Questions: 100
Total Answers: 102

Location: Jersey
Member since Mon, Jun 14, 2021
3 Years ago
lara questions
;