Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Feature Request: Transition override by Web Server #1590

Closed
@tenor

Description

@tenor

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

jblas commented on May 9, 2011

@jblas
Contributor

FYI, there is already a transition called "none". It basically pops the new page into place with no animations.

toddparker

toddparker commented on May 9, 2011

@toddparker
Contributor

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

tenor commented on May 9, 2011

@tenor
Author

@jblas -- Thanks, I've updated the issue.
@toddparker -- I've edited the wiki.

toddparker

toddparker commented on May 9, 2011

@toddparker
Contributor

Super, thanks!

scottjehl

scottjehl commented on May 9, 2011

@scottjehl

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

tenor commented on May 9, 2011

@tenor
Author

That's good to know. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @scottjehl@toddparker@jblas@tenor

        Issue actions

          Feature Request: Transition override by Web Server · Issue #1590 · jquery-archive/jquery-mobile