Questions tagged [crossroadsjs]

Crossroads.js is a routing library inspired by URL Route/Dispatch utilities present on frameworks like Rails, Pyramid, Django, CakePHP and CodeIgniter.

Crossroads.js was built with flexibility in mind and with the goal to be used as a standalone utility which can be plugged into any application and other libraries or frameworks to allow easy and robust URL dispatch.

One of the main differences of Crossroads.js is that it uses plain strings for the routing system which means it can be used to route URLs, server requests or simply as a messaging system across your application. It also means that Crossroads.js doesn't do things that it isn't supposed to do like updating the window.location, loading data or changing the application state unless you want to.

It also has many advanced features to enable easy and robust mapping of strings to actions that aren't present on most JavaScript solutions.

17 questions
2
votes
0 answers

Angular 2+ with Knockout

As being a Backend Developer myself, I have been maintaining a Knockout SPA project for about a few months which is built on Boilerplate.js where the routing is handled by Crossroads.js. And I would like to gradually migrate to Angular 2+ if…
2
votes
0 answers

Nested Views with crossroads.js

I am trying to create a "tabbed details view" for a given entity and I need it to be deep linked with the url/hash. The hard part is I want the data to be lazy-loaded. In a perfect world, I would have a parent route at /Index.html#details/
jensengar
  • 6,117
  • 17
  • 58
  • 90
2
votes
1 answer

Refresh hasherJS/crossroadsJS routes

I’m utilizing crossroadsJS and hasherJS on an SPA powered by handlebarsJS. In retrospect I probably should have built the whole thing on Ember, but this late in it’s not wise to start over. I have hash routes set up that switch my handlebars…
2
votes
1 answer

How to get actual value of URL in Crossroads

Lets say, I have defined a route like : route:{ pattern: '/root/finder/*', handler: finderHandler } If the user makes a request with url /root/finder/1234, then this matches the above pattern, and the request will be handled by…
2
votes
2 answers

Crossroadsjs routing: how to use it?

I am facing the same problem as this one as I am trying to figure out how to use crossroads for a few hours now and nothing seems to work. its webiste is just another poor documented site... I think I am probably daft! I wonder if anyone has made…
Run
  • 54,938
  • 169
  • 450
  • 748
2
votes
2 answers

How can I implement links within a page, while using Client-side routing?

I'm working on an SPA, using crossroads.js for the client-side routing. Everything is working perfectly, with one exception. I have one page within this SPA that is quite large, and I'd like to be able to use internal links, to provide a table of…
KevinD
  • 3,023
  • 2
  • 22
  • 26
1
vote
1 answer

How to use crossroads JS?

I am trying to figure out how to work with crossroads JS and kind of confused if I am on the right track. Testing Cross Roads Testing link
Rohan
  • 13,308
  • 21
  • 81
  • 154
1
vote
0 answers

How to refresh content when using CrossroadJS and HasherJS with KnockoutJS

I was following Lazy Blogger for getting started with routing in knockoutJS using crossroads and hasher and it worked correctly. Now I needed to refresh the content using ajax for Home and Settings page every time they are clicked. So I googled but…
Sandeep Kumar
  • 1,505
  • 1
  • 15
  • 24
1
vote
1 answer

returning to root page with crossroads.js and hasher.js

I'm just starting out with crossroads.js and hasher.js and am having success parsing most of my routes. What I don't understand is how to get back to the root of the page. I know I'm not saying that right, but here's my issue: I navigate to…
1
vote
1 answer

Error using crossroads.js in optimized (r.js) require setup

I have developed an application using RequireJS, with no optimization layer - Require downloads each file separately. Here is the outer markup: