This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Feature Request: Transition override by Web Server #1590
Comments
FYI, there is already a transition called "none". It basically pops the new page into place with no animations. |
Could you add this as a feature request on this wiki page and close when done? |
@jblas -- Thanks, I've updated the issue. |
Super, thanks! |
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. |
That's good to know. Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: