Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS variables in HTML

Status
Not open for further replies.

WidowMaker

IS-IT--Management
Jun 30, 2001
12
0
0
DK
Hey Guru's, (with sugar on top ;-) )
is it possible to use variables from VBScript into HTML?

Im getting a lot of variables from an INI file by using VBS and an ActiveX control, and would like to use these in HTML..

Ex: The "1st", "2nd", "3rd" shall be replaced by the varibles "A", "B" and "C" ... Any ideas?!?


<HTML>
<HEAD>
<TITLE> type_Document_Title_here </TITLE>
</HEAD>
<BODY>

<form name=&quot;SOMEFORM&quot; method=&quot;post&quot;>

<INPUT TYPE=RADIO NAME=SOMERADIO VALUE=&quot;1&quot; > 1st<BR>
<INPUT TYPE=RADIO NAME=SOMERADIO VALUE=&quot;2&quot; > 2nd<BR>
<INPUT TYPE=RADIO NAME=SOMERADIO VALUE=&quot;3&quot; > 3rd<BR>

<SCRIPT language=&quot;vbscript&quot;>
SOMEFORM.SOMERADIO(1).checked = true;
</SCRIPT>

</form>

</BODY>
</HTML>
 
U have to use table aligniament for this
Hope this helps you
<HTML>
<HEAD>
<TITLE> type_Document_Title_here </TITLE>
</HEAD>
<BODY>

<form name=&quot;SOMEFORM&quot; method=&quot;post&quot;>
<table>
<tr>
<td>
<INPUT TYPE=RADIO NAME=SOMERADIO VALUE=&quot;1&quot; >
</td>
<td name=&quot;txt1&quot; id=&quot;txt1&quot;>
1st
</td>
</tr>
<tr>
<td>
<INPUT TYPE=RADIO NAME=SOMERADIO VALUE=&quot;2&quot; >
</td>
<td name=&quot;txt1&quot; id=&quot;txt1&quot;>
2nd
</td>
</tr>
<tr>
<td>
<INPUT TYPE=RADIO NAME=SOMERADIO VALUE=&quot;3&quot; >
</td>
<td name=&quot;txt1&quot; id=&quot;txt1&quot;>
3rd
</td>
</tr>
</table>
<input type=&quot;button&quot; value=&quot;Change&quot; name=&quot;cmdChange&quot; id=&quot;cmdChange&quot;>
</form>
</BODY>
<SCRIPT language=&quot;vbscript&quot;>
SOMEFORM.SOMERADIO(1).checked = true
sub cmdChange_OnClick
SOMEFORM.all.txt1(0).innerHtml=&quot;A&quot;
SOMEFORM.all.txt1(1).innerHtml=&quot;B&quot;
SOMEFORM.all.txt1(2).innerHtml=&quot;C&quot;
end sub


</SCRIPT>
</HTML> ________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top