proasp_codeclinic thread: VBScript Function from JScript both running on Server side
entry program. There are some VBScript functions I want to use in the
running on the server side. I saw some examples of using VB Functions in
JScript, but the JScript is on client machine, not on the server machine.
Some may ask why I am trying to use both Scripting language on the server
side. I am actually working on some ASP pages where a VB dll has been used
as an ActiveX object. My project goal is to get rid of that VB dll. So my
first choice is to translate that VB dll to VBScript. Unfortunately that
VB dll was used by JScript running at Server side. So I found myself in
the above-mentioned situation. I will appreciate if somebody have some
here is the code and the output. It's giving me error when I am trying to
use VBFunc after calling JSxyz("/JS(6)\n").
Public Function VBFunc(sMethodStatement)
sMethod = Replace(sMethodStatement,"\#", Chr(34))
Execute "Response." & sMethod
VbFunc "Write \#Follow the black sheep.(3) <br>\#"
JSxyz " /VBScript (4)/ "
Response.write("White Rabbit flies away " + sd)
VbFunc("Write \#Follow the white rabbit in JS.\#")
<%VBFunc "Write \#Follow the white rabbit.(8)\#"%>
White Rabbit flies away /Jscript(5)/White Rabbit flies away /JS(6)
Microsoft JScript runtime error '800a138f'
/butler/be/test/re.asp, line 22 Follow the black sheep.(3)
White Rabbit flies away /VBScript (4)/ White Rabbit flies away /JS22(7)
Follow the white rabbit.(8)White Rabbit flies away /JS22(9)