passing variables

Results 1 to 3 of 3

Thread: passing variables

  1. #1
    coderwannabee Guest

    Default passing variables

    I would like to pass a variable from vbscript to javascript then back to vbscript. the reason for this is to use the javascript unescape function. This all has to be done on the server side. If anyone knows how to do this in all vbscript I would be very happy. god knows I've tried but have had zero luck. Thanks in advance for any help.

  2. #2
    J. Paul Schmidt Guest

    Default RE: passing variables

    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>

  3. #3
    cwb Guest

    Default RE: passing variables

    can i post the form and retreive the value before I send anything to the clients pc?

Posting Permissions

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