Questions tagged [routerjs]

RouterJs is a simple router for your Ajax web apps. It's build upon History.js which means that it supports the HTML5 History API with a fragment fallback for HTML4 browsers. Highly inspired by the Backbone.js Router it also supports passing parameters with :param and splat parts with *splat.

RouterJs is a simple router for your Ajax web apps. It's build upon History.js which means that it supports the HTML5 History API with a fragment fallback for HTML4 browsers. Highly inspired by the Backbone.js Router it also supports passing parameters with :param and splat parts with *splat.

7 questions
1
vote
1 answer

What's the easiest way to implement routes to show certain views?

I've created a site that has multiple panels that slide in from the right side of the screen. I want to be able to put a link on each panel that will share my webpage, and when the user comes to the site, that specific panel will be open. For…
user3126277
1
vote
0 answers

RouterJs how to trigger initial route

I'm using RouterJs to handle my history push state routes. How can I trigger the initial route if the user visits the route directly in their browser? The route handler gets executed if I do router.navigate('/some-route') from another route, but if…
Ian Davis
  • 19,091
  • 30
  • 85
  • 133
1
vote
0 answers

How to implement an handler lookup for routerjs

I'm trying to use routerjs as a standalone library but can't figure out how to implement the handler lookup as it's said in the documentation, and couldn't find any example. What I've got so far: var router = new…
romainberger
  • 4,563
  • 2
  • 35
  • 51
0
votes
1 answer

How to pass body to express router for PUT request?

I'm trying to create a PUT request using express.js, but I keep getting this error stating that the body is not defined. But when I print the req to the console, I do see body with the…
Kuni
  • 817
  • 1
  • 9
  • 24
0
votes
1 answer

mmenu jQuery plugin doesn't update url on clicking links with href starting with #

  • About
  • I am using mmenu plugin. Following links does not update window location. I am using backbone.js and…
    0
    votes
    1 answer

    How can i trigger and inject the value to the router function

    I have the following issue I poll a file for words, when found, I want to trigger a match using the trigger function and direct a match to the molly map function, currently the script trigger from voice using the webKitSpeechRecon. // inject fun…
    user2650420
    0
    votes
    1 answer

    Comparison of Crossroads.js and router.js

    Looks like crossroads.js is much older than router.js. All the articles about crossroads.js seem to be from 2011. I'm wondering if anyone has a comparison: reasons why you'd use one over the other differences in how they operate etc See also:…
    B T
    • 57,525
    • 34
    • 189
    • 207