I understand that VBScript is executed first and then JavaScript/JScript. So how can I pass a JavaScript/JScript function a VBScript variable?<br><br>Can someone help me out?<br>Pete<br><br>Sorry for the cross post, same quesion is posted in the VBScript forum.
is it client side or server side?<br>do you mean passing a javascript variable to a vbscript function? <p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br>
I will be using VBScript to do some server side scripting and I would like to send the value of the VBScript to JavaScript to do some client side scripting with that value.<br><br>Sorry for the misunderstanding,<br>Pete
just say your vbscript variable is called iNumber. create a javascript variable and give it the value of iNumber. in your vbscript code, do:<br><br>Response.write "<script>var iNum = " & iNumber & ";</script>"<br><br>then, in your javascript, you can access with iNum <p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.