Shop OBEX P1 Docs P2 Docs Learn Events
Pink Module help with HTML code — Parallax Forums

Pink Module help with HTML code

skylightskylight Posts: 1,915
edited 2007-04-06 16:44 in General Discussion
Just got my Pink and am very pleased with the results that i have achieved so far, I am currently trying to get my head around the HTML code for using radio buttons for 4 or 5 options so that only one option·can be selected at a time and how that code will be interpreted by the pink into one of it's variables using simple on off or 1 and 0 commands, it's the radio button true/false = load 1/0 into Nb_VARXX bit in HTML code thats getting me stumped at the moment, I tried using Microsoft Frontpage to give me the radio buttons but the HTML preview freaked me out and i couldn't see where to drop in the Form post Nb_VARXX bit.

Comments

  • mhammermhammer Posts: 20
    edited 2007-04-06 14:00
    here is a simple solution to the probleme that should get you going on the right track.·· I have attached a simple html document that sets Variable 10 on the Pink to On or Off depending on what Radio button is selected.


    Hope This Helps


    Mike


    <HTML>
    <HEAD>
    <TITLE>Radio Buttons</TITLE>
    </HEAD>
    <BODY>
    Current State of Variable 10: <FONT Color="RED"><B><Nb_var10></B></FONT>
    <Form method="Post" Action="/Radio.html">
    <Input name="Nb_var10" type="Radio" Value="On">Turn On Variable<BR>
    <Input name="Nb_var10" type="Radio" Value="Off">Turn Off variable<BR>
    <Input Type="Submit">
    </FORM>
    </BODY>
    </HTML>


    Just Name this File Radio.HTML and upload it to a Pink· once on there you can view it and you should see the requested Result.
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2007-04-06 14:22
    I have attached a link to a great website for your exact query - this site has a work and test area for all code..

    www.w3schools.com/html/html_examples.asp

    Radio Button Area:
    www.w3schools.com/html/tryit.asp?filename=tryhtml_form_radio

    Hope it helps.

    Regards,
    Quattro

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'
  • skylightskylight Posts: 1,915
    edited 2007-04-06 15:57
    Thanks mhammer and QuattroRS4 that's brilliant thanks for putting me on the right track, now i can really start to get things going
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2007-04-06 16:44
    No problem Skylight .... best of luck with your project...

    Regards,
    Quattro

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'
Sign In or Register to comment.