Using Jscript variables in VBscript?

Results 1 to 2 of 2

Thread: Using Jscript variables in VBscript?

  1. #1
    Tim Warke Guest

    Default Using Jscript variables in VBscript?

    Does anyone know if it is possible to somehow use a variable in VBscript that has been defined in a Jscript?<BR><BR>Or vice versa.<BR><BR>Thanks<BR><BR>Tim

  2. #2
    J. Paul Schmidt Guest

    Default RE: Using Jscript variables in VBscript?

    It&#039;s easy to use the value of a VBScript variable in JavaScript:<BR>document.writeln(&#039;&#060;%= MyVBScriptVariable %&#062;&#039;);<BR><BR>But to send the value of a JavaScript variable to VBScript, well that&#039;s another story. You could have the JavaScript fill in a hidden form field and then post the form. That way VBScript can pick up the value of the hidden form field with Request.Form("MyFieldName")<BR><BR>Best regards,<BR>-Paul<BR><BR>J. Paul Schmidt, MBA<BR>Databases on the Web<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts