using xmlHttpRequest.send() in java script

Posted by harun123 on Stack Overflow See other posts from Stack Overflow or by harun123
Published on 2010-05-13T12:57:52Z Indexed on 2010/05/13 13:04 UTC
Read the original article Hit count: 190

Filed under:
|

How to use xmlHttp Request.send()?......

My code in java script is as follows:

str_xml+="<xml_to_be_submitted><request_xml><client_id>"+document.frmCallEntryAdd.cboCLIENT.options[document.frmCallEntryAdd.cboCLIENT.selectedIndex].value+"</client_id></request_xml></xml_to_be_submitted>";
  var obj_http=new ActiveXObject("Microsoft.XMLHTTP");
  var str_url="ClientModuleFetch.aspx";
  var str_http_method="post";
  obj_http.open(str_http_method,str_url,false);
  obj_http.SetRequestHeader("Content-Type","application/x-www-form-urlencoded");
  obj_http.send(str_xml);
  var str_reply=obj_http.ResponseText;


  var xmlResponse = str_reply;

  var objXmlDOM=new ActiveXObject("Microsoft.XMLDOM");

Can any body tell what i had gone wrong?................

© Stack Overflow or respective owner

Related posts about Xml

Related posts about JavaScript