Jump to content

Advanced Webserver Button input and display state


Recommended Posts

I'm looking for a way to use a slider button, similar to an iphone toggle switch, to toggle input to an operand and display the current state (ON/OFF). I'm using css for the slider and it resets on every refresh. Is there a way with javascript or jquery to set the refresh rate to make it closer to realtime  and to use GET to have the slider always display the current value? 

 

I've attached my start.htm and the css for the switch

 

Thanks for any help! I know I can use html and the info in the example file to accomplish these tasks, but I'd like something more concise and neater looking. 

Start.htm

Toggle.css

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.