PDA

View Full Version : URL hashing a.k.a. Unique URLs for Sencha touch apps



jeffj
18 Oct 2010, 2:17 PM
Has anyone played around with or done any research into URL hashing for sencha apps. I was interested in incorporating expressive URL's for views and/or more complex features (i.e. input queries to getJSON methods)

aaronwbg
23 Nov 2010, 10:47 PM
I'm interested as well, thought I'd bump this.

jeffj
11 Feb 2011, 1:48 PM
Any word on how to accomplish this?

JustShrey
12 Feb 2011, 2:04 PM
I am not sure if this might be exactly what you need , but please have a look at Ext.Router.

It allows you to link URL hashes to specific controller actions. This should let you deep link to the application accordingly.

Also , use useHistoryUrl while dispatching in order to let every action have a unique URL.

Check out the twitter example on how to do this.

http://dev.sencha.com/deploy/touch/examples/twitter/app/routes.js

http://dev.sencha.com/deploy/touch/examples/twitter/app/controllers/searches.js