function Transmit_SOAP() { if(window.ActiveXObject) {//For IE Browsers. This coding works well in IE browsers var tempNode=xmlSoapTemplate.selectSingleNode(pathString+"xmlDatasets"); tempNode.appendChild(xmlDataReturn.documentElement); } else {//verify the code below.(Safari Support) alert("Checking"); try{ var tempNode=xmlSoapTemplate.evaluate(pathString+"xmlDatasets", xmlSoapTemplate, null, XPathResult.ANY_TYPE,null); } catch (e) { alert(e); } tempNode.appendChild(xmlDataReturn.documentElement); } }
if(window.ActiveXObject) { //For IE Support. //Begin by loading up the dataform via soap request xmlSoapTemplate=new ActiveXObject("Microsoft.XMLDOM"); xmlSoapTemplate.onreadystatechange = function () { if (xmlSoapTemplate.readyState == 4) Transmit_SOAP() }; xmlSoapTemplate.load("../Dataforms/soap_1.xml"); } // For Safari Support else { xmlSoapTemplate = new XMLHttpRequest(); xmlSoapTemplate.open('GET','../Dataforms/soap_1.xml', true); xmlSoapTemplate.onreadystatechange = function() { if (xmlSoapTemplate.readyState == 4) { Transmit_SOAP() } } xmlSoapTemplate.send(); }
void compatibility() { if (Request.UserAgent.IndexOf("AppleWebKit") > 0) { Request.Browser.Adapters.Clear(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)