Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Is this even Possible???

    I am working on a layout for the special needs community that contains a circle of sorts, that contains eight choices on the wheel for them choose from. They would like to have the circle rotate around, have the eight selection options each clickable, Ohh and finally have it work with mobile devices which rules out flash, which was the first thing I attempted.

    Is this even possible, and would you please give me some guidance on how to make this happen?
    Thank You
    http://[URL="http://uncommonbond.info/search.html"]

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Probably possible with HTML5 canvas, but it would run into all kinds of compatibility issues, and would only work with very new browsers.

    For a conventional approach you would need multiple images of the whel and have to use javascript to "rotate" the wheel with a series of image swaps in a loop, plus each of them would have to be an image map so you could define the hot spots.

    It would almost certainly be unreliable an wonky, and easily broken. On mobile the performance would range from acceptable to deplorable, to not working.

    Even if it worked properly, it would make the page look like something out of a cartoon. I don't use jquery, but this sounds like something nutty enough that there is probably a jquery solution.
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,639
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by COBOLdinosaur View Post
    I don't use jquery, but this sounds like something nutty enough that there is probably a jquery solution.
    If there's a jQuery solution then there are probably lots of other JavaScript solutions as well (since jQuery itself is simply a few lines of JavaScript written by John Resig that he decided to share). It certainly sounds like something that JavaScript could do.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •