Ability to track states in the url with &foo=bar
Maybe it would be useful to provide a way for developers to track application internal states in the url.
If I have an application that renders dynamically and *client side* a lot of content, for instance in a page with the id #dynamicDetail, I know what kind of content I have to output in that page by binding some click events to the buttons that link to that page.
Once the transition takes place, the url looks like: foo.bar/#dynamicDetail
The url doesn't carry the information to effectively render again that kind of content if linked directly.
I was wondering if it would be possible to provide a public method to add these states to the url, something like $.mobile.updateUrlStates({foo: "bar", bar: "foo"});
which may traslate to:
foo.bar/#dynamicDetail&foo=bar&bar=foo
into the url.
In practice, jqm should just strip /&.*/ from the hash before doing its internal magic.