#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    2
    Rep Power
    0

    importing vars from javascript file to vbscript


    Hi
    I have an asp page with serverside vbscript.
    I also have a asp page that is written in javascript (serverside) that i need certain variables out of.

    Rather than rewriting the javascript page to vb, am I able to pull variables out of the javscript page into the vbscript page?

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Bavaria, Germany
    Posts
    140
    Rep Power
    12
    Hmm, afair the two scripting languages run in two different scripting environments, but you can use the session object to transfer variables from one to another...i guess... ;-)

    <script language="jscript">
    Session("var") = "test";
    </script>

    <script language="vbscript">
    Response.Write "var: " & Session("var")
    </script>

IMN logo majestic logo threadwatch logo seochat tools logo