Normally to redirect a user in a website using javascript I'd use window.location.replace("newpage.html");
however I've found that when using Ratchet this doesn't work. Does anyone know of a good way to make a ratchet application change pages using javascript?
Asked
Active
Viewed 232 times
0

Jesse Green
- 373
- 2
- 6
- 20
1 Answers
0
Take a look at push.js to see how the navigation mechanism is triggered. Ratchet auto-wires navigation to elements triggered on the touchend event. You can call PUSH with those properties directly.
PUSH({
url : "target.html",
hash : "#",
timeout : null,
transition : "slide-in"
});

kindasimple
- 2,427
- 1
- 16
- 20