Shop OBEX P1 Docs P2 Docs Learn Events
More Pink Web Help needed. — Parallax Forums

More Pink Web Help needed.

DgswanerDgswaner Posts: 795
edited 2007-10-10 23:42 in General Discussion
I'm trying to have a web Slider control a Servo. I have a slider working on a web page, but I don't know how to get it to update the variable, or if it can even be done with this code. Is there another method that will update the Variable on the pink besides using post/Submit? Does anyone have code for a Vertical Slider? Here is what I have so far. 71.219.98.215/slider.html

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster

Comments

  • SteelSteel Posts: 313
    edited 2007-10-10 20:14
    I can't help as far as PINK is concerned...but I just checked out your slider.· Are you sure you want 0 - 360...or do you want 0-359?· (Since 360 is equal to 0)
  • DgswanerDgswaner Posts: 795
    edited 2007-10-10 20:26
    Yes you are right, and actually it will be more like 0-169 (or what ever the travel distance of the servo is).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
  • skylightskylight Posts: 1,915
    edited 2007-10-10 23:42
    I asked a similar question in an earlier post and it seemed that there was no way to write to a variable without executing a post from a button,but I wonder if there is a method maybe with javascript that reads you clicking on the slider button and only does a post when you release the mouse button? might be worth a search for a clickable slider button?
Sign In or Register to comment.