Passing variables

Results 1 to 3 of 3

Thread: Passing variables

  1. #1
    Ed Guest

    Default Passing variables

    The following xml code was given to me by Michael McLain ( and it works very well. I would like to use the data in httpdata in the vbscript. I have been unable to figure this out. Can anyone help? <BR><BR>set ox = CreateObject("microsoft.xmlhttp")<BR>href="http://www.somewebsitefile/text.txt"<BR>ox.Open "GET", href, false<BR>ox.Send()<BR>httpdata = ox.ResponseText<BR>httpheaders = ox.GetAllResponseHeaders<BR>set ox = nothing<BR>%&#062;<BR>&#060;SCRIPT LANGUAGE="VBScript"&#062; <BR>&#060;!--<BR> I want use httpdata here.<BR>--&#062;<BR>&#060;/SCRIPT&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: Passing variables

    sorry, it&#039;s unclear what you want.

  3. #3
    Ed Guest

    Default RE: Passing variables

    Sorry. I&#039;m not very good at terminology. If you will notice httpdata is a text string that is received through the XML command Ox.ResponseText. I would like to parse the text string in my vbscript. However, I cannot figure out how to pass the variable value to the vbscript.

Posting Permissions

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