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 6106389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:04:26+00:00 2026-05-23T14:04:26+00:00

We have built an iPhone style date picker. It is functional at the moment

  • 0

We have built an iPhone style date picker. It is functional at the moment in everything except IE. What I do not know how to do is find the tittle attribute of which ever value is in the centre.

Here is a fiddle : http://jsfiddle.net/XHPYF/1/

Any ideas,

Marvellous

  • 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-23T14:04:27+00:00Added an answer on May 23, 2026 at 2:04 pm

    Here’s a way – http://jsfiddle.net/pxfunc/XHPYF/7/

    1. You can set in your HTML the initial value using class='selected'
    2. Then use jQuery to determine the top offset value for the current selected element and save it to a variable for step 3
    3. Use the onScrollEnd event (in your iScroll plugin) to track changes by:
      1) Clearing the current element marked as selected
      2) Iterating the list items to determine where the top offset is equal to the initially selected item and mark it as the selected item

    UPDATE (the original solution works in Webkit browsers but Firefox works a bit different):

    you’ll need to parse the data from either

    $('#minwheel .slotinner').css("-moz-transform")
    // result: "matrix(1, 0, 0, 1, 0px, -32px)"
    

    or

    $('#minwheel .slotinner').attr("style")
    // result: "... -moz-transform: translate(0px, -32px) scale(1);"
    

    In both cases the -32px would need to be parsed out and used to determine the selected list item.

    Here’s a solution for Firefox

    http://jsfiddle.net/XHPYF/13/


    now you just need to figure out how to make it work in IE 🙂


    this is definitely an experimental user control, browser updates could potentially break it and useragent detection for determining which way to get the selected item is a pretty big no-no in general. Still, the iPhone look and functionality is fun and cool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built an iPhone app with SDK 4.2 however I know also want
I have an application built for iPhone 2.0 but I would like to use
I have an iphone app that I built based off a tutorial (for a
I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when
I have built a web-app for iphone using iUi framework. As you may already
Apple now says that apps built against the iPhone OS 2.0 SDK will not
I have unit tests set up for my iPhone project built using the Google
I have built an iPhone app with 3.1.2 SDK. Can it be able to
I have built some basic apps for iPhone and Mac with a general understanding
I have an iPhone app named XXXX-YYYY, now i have built a separate iPad

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.