When using this below code, i need to call the Transmit_SOAP() function. But it fails to call. Is there any problem?
function sample()
{
var xmlSoapTemplate;
xmlSoapTemplate = new XMLHttpRequest();
xmlSoapTemplate.onreadystatechange = function () {
if (xmlSoapTemplate.readyState == 4) Transmit_SOAP()
};
}
function Transmit_SOAP()
{
alert("Function calls");
}
You are missing calls to
open()andsend(), you don’t tell it what URL to use etc.Here’s a rough example: