Results 1 to 10 of 10

Thread: javascript(vbscript)

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    PAKISTAN
    Posts
    54

    javascript(vbscript)

    in javascript i want use vbscript it can possible
    if yes tell me how........
    Be Good Not Bad

  2. #2
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101

    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>

  3. #3
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    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!!!

  4. #4
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101

    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>

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    PAKISTAN
    Posts
    54
    Thanks for ur reply.......
    Be Good Not Bad

  6. #6
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101
    NP
    <% Session("OwNeD")=True %><html><body>Blah... <%="Now get your ass back to the twilight zone..."%></body></html>

  7. #7
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    in javascript i want use vbscript it can possible
    I don't think anyone has asked this but, why?
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  8. #8
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101

    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>

  9. #9
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    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
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  10. #10
    Lively Member
    Join Date
    Jul 2002
    Location
    Gateshead, UK
    Posts
    101

    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
  •  



Click Here to Expand Forum to Full Width