Feature Request: Transition override by Web Server #1590
Description
Currently when navigating from one page to another, you can specify the kind of transition you want on the markup as documented at http://jquerymobile.com/demos/1.0a4/docs/pages/docs-transitions.html
I think it would be useful if the web server/app can override the transition settings.
Let me describe a a typical scenario: User fills out and submits a form. If everything goes well, he is directed to the desired page, if he filled out the form incorrectly, he is presented the form again with the invalid fields highlighted.
If everything goes well and there is a transition to the desired page, then there is no problem but it would be a bit irritating if there is a transition to the error page which is exactly the same page he was on previously (albeit with invalid fields highlighted).
I propose a new X-JQM-Transition HTTP header which JQM would look out for and not perform transitions if set by the web server in the response.
This feature should also work properly in the case of redirected pages.
Thanks.
Activity
jblas commentedon May 9, 2011
FYI, there is already a transition called "none". It basically pops the new page into place with no animations.
toddparker commentedon May 9, 2011
Could you add this as a feature request on this wiki page and close when done?
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests
tenor commentedon May 9, 2011
@jblas -- Thanks, I've updated the issue.
@toddparker -- I've edited the wiki.
toddparker commentedon May 9, 2011
Super, thanks!
scottjehl commentedon May 9, 2011
Once we expose events/callbacks for handling page response data (currently in progress), you'll be able to do this on your own. I'm guessing you could used http status codes instead of inventing a new header, but either way should be easy enough for you to do.
tenor commentedon May 9, 2011
That's good to know. Thanks!