All Forums >> [Scripting] >> Post a VBScript >> A basic HTA template Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I thought this might prove useful to the HTA virigins amongst you. It's a very basic HTA template that demonstrates some of the most common DHTML objects
< Message edited by ginolard -- 12/7/2006 12:30:08 AM >
Posts: 712
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Noticed you didn't have anything setup in the SUB for the Radio Buttons. (What you don't like Radio Buttons that much?)
Added the "Value" to the radio buttons: <input type="radio" name="Radio" title="This is a Radio button" value="RadioOne" onclick="CheckRadioButtons" CHECKED> <input type="radio" name="Radio" title="This is a Radio button" value="RadioTwo" onclick="CheckRadioButtons"> These are radio buttons
Then added this small bit of code to the "Sub CheckRadioButtons" If Radio(0).Checked THEN MsgBox Radio(0).Value ELSE MsgBox Radio(1).Value END IF
with the textarea when you submit it adds the text to the textfile. Is there anyway of when you submit it overwrites anything already in the text file?