|
-
Sep 26th, 2002, 11:29 PM
#1
Thread Starter
Member
javascript(vbscript)
in javascript i want use vbscript it can possible
if yes tell me how........
-
Sep 27th, 2002, 08:30 PM
#2
Lively Member
No way!
No man - they can only be kept in seperate HTML <script> tags...
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
-
Sep 30th, 2002, 08:43 AM
#3
Hyperactive Member
Could you not use document.write to write the VBScript from JavaScript. Or set a label with a name and when some javascript fires use the .outerHTML to write the VBScript?
See ya later,
-=XQ=-
"Reality is merely an illusion, albeit a very persistent one. "
- Albert Einstein (1879-1955)
This is the coolest site ever!!!
-
Sep 30th, 2002, 09:15 AM
#4
Lively Member
That would work
Actually, yeah - that should work. I meant that the two languages cannot directly interact; however the print output of Javascript/VBS can still pass on vars, etc, between the two independantly.
It would be similar to serverside pre-processed ASP code, for example - only that it is document.write'd from the client script.
EG:
Code:
<script language="javascript"><!--
document.write("<script language='VBScript'>\n");
document.write("MsgBox \"VBS output\"\n");
document.write("</script>\n");
--></script>
P.S: Don't forget to use escaped double quotes (\"), for the VBS strings (i.e. MsgBox parameters) - otherwise the Javascript interpreter may be "upset", and the nested VBScript output won't work properly. Also, use the new line chars (\n), or document.writeln, when necessary.
Last edited by trojjer; Sep 30th, 2002 at 09:23 AM.
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
-
Oct 1st, 2002, 02:40 AM
#5
Thread Starter
Member
Thanks for ur reply.......
-
Oct 1st, 2002, 02:44 AM
#6
Lively Member
NP
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
-
Oct 1st, 2002, 08:51 AM
#7
Fanatic Member
in javascript i want use vbscript it can possible
I don't think anyone has asked this but, why?
-
Oct 1st, 2002, 11:49 AM
#8
Lively Member
Dunno...
Maybe he prefers VBScript; or it can do something that JScript can't (I think JS is the better language, but nvm...)
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
-
Oct 2nd, 2002, 03:41 AM
#9
Fanatic Member
Yeah, good point. I think most VBScript functions and methods can at least be emulated in Javascript.
But, if he likes VBScript we'll let him get on with it
-
Oct 4th, 2002, 07:41 AM
#10
Lively Member
Yep
I agree - let people use their desired language; if they want...
<% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|