Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here you go:</p> <pre><code>function ProcessSend() Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.4.0") Set oXMLDoc = CreateObject("MSXML2.DOMDocument") oXMLHTTP.onreadystatechange = getRef("HandleStateChange") strEnvelope = "callNo="&amp;callNo&amp;"&amp;exp="&amp;exp call oXMLHTTP.open("POST","http://localhost:11883/ServiceCall.asmx/"&amp;posFirm,false)'&lt;&lt; changed true to false here. call oXMLHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded") call oXMLHTTP.send(strEnvelope) end function Sub HandleStateChange if(oXMLHTTP.readyState = 4) then dim szResponse: szResponse = oXMLHTTP.responseText call oXMLDoc.loadXML(szResponse) if(oXMLDoc.parseError.errorCode &lt;&gt; 0) then 'call msgbox("ERROR") response = oXMLHTTP.responseText&amp;" "&amp;oXMLDoc.parseError.reason 'call msgbox(oXMLDoc.parseError.reason) else response = oXMLDoc.getElementsByTagName("string")(0).childNodes(0).text end if end if End Sub </code></pre> <p>Why are you btw doing this in VBScript, if the rest of your code is in JScript? Like this:</p> <pre><code>function ProcessSend(){ var oXMLHTTP = ActiveXObject("MSXML2.XMLHTTP.4.0") strEnvelope = "callNo=" + callNo + " &amp; exp=" + exp; oXMLHTTP.open("POST", "http://localhost:11883/ServiceCall.asmx/" + posFirm, false); oXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); oXMLHTTP.send(strEnvelope); if(oXMLHTTP.readyState == 4){ if(oXMLHTTP.responseXML.parseError.errorCode != 0){ response = oXMLHTTP.responseText &amp; " " &amp; oXMLHTTP.responseXML.parseError.reason; }else{ response = oXMLHTTP.responseXML.getElementsByTagName("string")(0).childNodes(0).text; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload