| |
tjpogue
Posts: 2
Score: 0
Joined: 5/26/2005
From: USA
Status: offline
|
I'm looking for an example of a checkbox script to insert into an HTA file. I have a list of items to be checked and I want users to be able to select the items from the list. I have that part but what I'm having trouble with is I need to find someway to record what has been selected. If anyone can help out I would be gratefull. This is the first time that I've worked with VBScript so go easy on me! Thanks Trevor Pogue PS: Here is an example of what I have so far. <html> <head> <title>Avanade Image for Microsoft XP SP2</title> <HTA:APPLICATION APPLICATIONNAME="HTA Test" SCROLL="yes" SINGLEINSTANCE="yes" WINDOWSTATE="normal" > </head> <script language="VBScript"> dim BasicCheckbox Sub RunScript If BasicCheckbox.Checked Then Msgbox "The checkbox has been checked." Else Msgbox "The checkbox has not been checked." End If End Sub </script> <body> <form name="Software Checklist" method="POST"> <div align="left"><br> <p>Please Choose Additional Software to Complete Installation!</p> <input type="Checkbox"name="BasicCheckbox"value="Virtual PC 2004"> Virtual PC 2004<br> <input type="checkbox" name="option2" value="Exchange 2003 Resource Kit"> Exchange 2003 Resource Kit<br> <input type="checkbox" name="option3" value="Windows 2003 Admin pack"> Windows 2003 Admin pack<br> <input type="checkbox" name="option4" value="Network and System Diagnostic tools"> Network and System Diagnostic tools<br> <input type="checkbox" name="option5" value="AD Diagnostic Tools"> AD Diagnostic Tools<br> <input type="checkbox" name="option6" value="Regmon"> Regmon<br> <input type="checkbox" name="option7" value="Filemon"> Filemon<br> <input type="checkbox" name="option8" value="Portmon"> Portmon<br> <input type="checkbox" name="option9" value="Virtual PC 2004"> Virtual PC 2004<br> <input type="checkbox" name="option10" value="SQL 2K Dev Ed + SP3a"> SQL 2K Dev Ed + SP3a<br> <input type="checkbox" name="option11" value="Visual Studio 2003 Enterprise Architect"> Visual Studio 2003 Enterprise Architect<br> <input type="checkbox" name="option12" value="IIS"> IIS<br> <input type="checkbox" name="option13" value="Visual SourceSafe"> Visual SourceSafe<br> <input type="checkbox" name="option14" value="VSVars32.bat"> VSVars32.bat<br> <input type="checkbox" name="option15" value="Witway" checked> Witway 4.0 <FONT COLOR="red">(Required for Payroll!!)</FONT><br> <br> </div> <p>Click here when finished.</p> <input id=runbutton class="button" type="button" value="OK" onClick="RunScript"> </form> </body> </html>
|
|