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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html/VBScript variable question...

Status
Not open for further replies.

wrbodine

Programmer
Aug 24, 2000
302
US
I'm calling a VB Script function when a user clicks on a button, and want to pass a variable into the function. My code looks like this:

<td valign=center><input type=submit name=Scroller value=&quot;|<&quot; onClick=&quot;return Scrolling(<%=beg%>)&quot;></td>

beg is the name of a VBScript variable, and Scrolling is the name of my function. The problem is, the way its done now, I need quotes around the string value. How would I add the quotes, or should I pass a value in another way??

Thanks,
Ray


 
Try this:

<td valign=center><input type=submit name=Scroller value=&quot;|<&quot; onClick=&quot;return Scrolling(<%= &quot;'&quot; & beg & &quot;'&quot; %>)&quot;></td>


Hope this helps!
smbure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top