azicchetti / jquerymobile-router

A router/controller for jquery mobile. Also adds support for client-side parameters in the hash part of the url. The routes handles regexp based routes. This plugin can be used alone or (better) with Backbone.js or Spine.js, because it's originally meant to replace their router with something integrated with jQM.
GNU General Public License v2.0
402 stars 69 forks source link

Missing router.navigate() method #43

Closed fbuchinger closed 12 years ago

fbuchinger commented 12 years ago

Thanks for developing jquerymobile-router, it really helps me to integrate my backbone app with jquery mobile.

One thing I'm missing though is the navigate method of Backbone Router. It allows me to manually trigger routes without forcing the user to click on buttons etc.

azicchetti commented 12 years ago

Hi, the router.navigate() method can be replaced (it's not a 1:1 replacement but it should cover about 90% of the cases) by jquery mobile $.mobile.changePage() method.

Here you can find the documentation: http://jquerymobile.com/demos/1.1.0/docs/api/methods.html

Hope this helps you!

Cheers, Andrea