• Passing parameters between VBScript and JScript

    Home » Forums » Developers, developers, developers » Web design and development » Passing parameters between VBScript and JScript

    Author
    Topic
    #362381

    I use VBScript in an ASP file to read and write from an Access database. In the same file I use a Javascript popup menu system. I want to be able to read a small string from the database and pass it to the Javascript to be included in a generated path. Any ideas how I can accomplish this?

    Viewing 0 reply threads
    Author
    Replies
    • #550364

      If you are writing the JavaScript into the page itself, and not using an include, you can use regular ASP tags and/or Reponse.Write to insert the value into your JavaScript code before serving the page. I haven’t tested this, but this is the idea:

      var path = “”
      etc.

      or perhaps

      <%
      Response.Write "” & VbCrLf
      Response.Write “var path = “”” & strPath & “”””
      etc.
      %>

    Viewing 0 reply threads
    Reply To: Passing parameters between VBScript and JScript

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: