Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML form/HTML in smart dialog
#21
i would add id attribute
Code:
Copy      Help
<form name="f" method="post" action="">
;1) Do you like cats?<br>
;<input type="radio" name="Questioner1" id="r1" value="Yes"> Yes<br>
;<input type="radio" name="Questioner1" id="r2" value="No"> No<br>
;<input type="radio" name="Questioner1" id="r3" value="Cats are ok but Dogs are better"> Cats are ok but Dogs are better<br>
;<input type="radio" name="Questioner1" id="r4" value="None of the above"> None of the above<p>
</form>

and then in
Function HD_sample_get_form_data
Code:
Copy      Help
MSHTML.HTMLInputElement ch
str r1 r2 r3 r4
ch=+doc.getElementById("r1")
r1=ch.getAttribute("checked" 0)
ch=+doc.getElementById("r2")
r2=ch.getAttribute("checked" 0)
;...

and then if r1=-1 ... else if r2=-1 ... and so on


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)