View Full Version : write a vbscript code inside javascript
eadtaha
07-01-2003, 12:45 PM
how can i write a vbscript code inside javascript
arnyinc
07-01-2003, 01:17 PM
VBScript will always execute on the server before javascript will execute. You can embed it into your javascript, just like it was any other text.
<script language="javascript">
function test(){
alert('<%=request.querystring("somevariable")%>');
}
</script>
brothercake
07-01-2003, 02:37 PM
you can also call client-side VBScript from HTML in the same way as with javascript. But of course, almost all client-side VBS uses ActiveX, which makes it functionally useless on the internet.
Skyzyx
07-08-2003, 01:02 AM
You can either document.write() it to the page, or you can rewrite it in JScript (Microsoft's version of JavaScript with the same features as VBScript).
If you post your code, I may be able to help you rewrite it as native JScript that can live happily with normal JavaScript.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.