PDA

View Full Version : Launch with Function



kringj
7 Sep 2011, 9:53 AM
Is it possible to launch and redirect to a view? I've got a RESTful web app, so that when a user goes to '/things/show/24' it shows the 24th thing. Currently, my Sencha Touch app doesn't use the 'show' method of 'things'. Instead, it uses '/things/index', retrieving a bunch of 'things', and storing them all in HTML5 local storage, so when the user clicks on a 'thing', it looks it up in local storage, and shows it. I would love for my users to be able to click on a '/things/show/24' link on their mobile phone, and have this basically redirect to the Sencha Touch app and load that 'thing' into local storage, then show it. Is this possible?