Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here,I want to call wcfREST webmethod(POST method) url from js function & submit xml data like.."<excelcelldata><assessmentid>205<cellid>4208String content<password>ert1Koiu<username>User5<r_lastdownloadcheckserverdatetime>2012-02-06<xmlinputs>fdgdfg</xmlinputs>"

here,my js function is ..


XML
if ($.browser.msie && window.XDomainRequest) {
             debugger;
            var xdr = new XDomainRequest();
            xdr.open("POST", uel + "RestDemo.svc/UploadExcelCellDataByPost");
            xdr.send('<ExcelCellData ><AssessmentID>205</AssessmentID><CellId>4208</CellId><OutPut>String content</OutPut><Password>ert1Koiu</Password><UserName>User5</UserName><r_LastDownloadCheckServerDateTime>2012-02-06</r_LastDownloadCheckServerDateTime><xmlinputs>fdgdfg</xmlinputs></ExcelCellData>');       
           
            xdr.onerror = function (error) {
              
                alert('in error');
            };
           
            xdr.onload = function () {
                writelog("Loading", _resDiv);
                writelog(xdr.responseText, _resDiv);
            };
        }



But,the above code giving error in IE browser.This is not working in IE.So,please give me solution over it asap...Thanks.
Posted
Updated 24-Jul-12 0:13am
v2
Comments
Dylan Morley 24-Jul-12 6:17am    
What is the error?
Sandeep Mewara 24-Jul-12 9:19am    
Complete error details?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900