JavaScript Into VbScript

Results 1 to 3 of 3

Thread: JavaScript Into VbScript

  1. #1
    Join Date
    Dec 1969

    Default JavaScript Into VbScript

    I need to take my VbScript variable & insert it into a JavaScript for processing.<BR><BR>Here is my vb: <BR>&#060;% <BR>Dim x<BR>x = request.querystring("GroupAsmID")<BR>%&#062;<BR><B R>Here is my JS:<BR>var vString = ""; &#060;----need to put the vbscript variable here<BR><BR><BR>Can anyone help me?

  2. #2
    Ed Guest

    Default RE: JavaScript Into VbScript

    How are you calling the javascript function?<BR><BR>OnClick="javascript:vstring(&#039 ;&#060;% x %&#062;&#039;)"<BR><BR>function vstring( strGroupAsmID )<BR>{<BR>var vString<BR>vString==strGroupAsmID;<BR>}<BR><BR>Or something....

  3. #3
    Join Date
    Dec 1969

    Default RE: JavaScript Into VbScript

    do like this: var VString = &#060;%x%&#062;<BR>OR <BR>put the variable in a hidden input box, then in JS<BR>use: document.formname.txtboxname.value to get the value.<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