Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:43:18+00:00 2026-05-25T11:43:18+00:00

according to jquerymobile page transitions docs the flip effect is only supported in last

  • 0

according to jquerymobile page transitions docs the flip effect is only supported in last version of android, how can I make the following button:

<a href="#ngame" data-role="button" data-transition="flip" data-rel="dialog">New game</a>

use the ‘flip’ effect only in android 2.3.4+ and ‘fade’ effect on prior versions ?

I’m using phonegap in my project if that helps.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:43:20+00:00Added an answer on May 25, 2026 at 11:43 am

    Step one would be to get the version of the device from the phonegap API (http://docs.phonegap.com/phonegap_device_device.md.html#device.version).

    Step two is to parse this into an integer or a float number and use that to decide whether or not to alter the dom:

    var android_version = parseFloat(device.version);
    if (android_version < 2.3) {
        $.each($('[data-transition="flip"]'), function (index, value) {
            $(value).attr('data-transition', 'fade');
        });
    }
    

    You will want to run this after the deviceready event fires as the device.version variable won’t be ready until then. Also, the flip effect will work on earlier version of Android OS, it just looks clunky as all it does it rotate the page like it’s doing a cartwheel rather than a three-dimensional flip.

    –> Note: You can also get the Android OS Version number in a webapp by checking the navigator.userAgent string. I found the regex below from another Stackoverflow question: Get Android OS version from user-agent

    [;(\s]Android (\d+(?:\.\d+)+)[;)] matched against the navigator.userAgent string gives me the following output:

    Android 2.3.3;,2.3.3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to what I have found so far, I can use the following code:
According to Apple Docs NSCalendar is not thread-safe . How can I ensure thread-safety
According to the answers to this question, I cannot embed a file version in
According to Wikipedia, on the Comparison of programming languages page, it says that F#
According to the feedparser documentation , I can turn an RSS feed into a
According to the App Engine docs, you wrap a datstore event in a transaction
According to my class notes, you can allocate an array in C++ like int
According to the MSDN documentation , a ribbon:RibbonControlSizeDefinition can be used to control the
According to http://msdn.microsoft.com/en-us/library/ms535934(v=VS.85).aspx and http://msdn.microsoft.com/en-us/library/ms535262(v=VS.85).aspx , I should be able to do the following
According to another question I can select individual XML fields with a YQL query

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.