How to send JSON data to XDR using the POST method

I want to send JSON data to XDR using the POST method. I can send JSON data, however the problem . (DOT) characters are converted to _ (underscore). Here is the code:

 if ($.browser.msie && window.XDomainRequest) { var xdr = new XDomainRequest(); xdr.open("POST",Path); xdr.send(JSON.stringify(data) + '&ie=1'); xdr.onerror = function() { alert('in error'); }; xdr.onload = function() { alert(xdr.responseText); } } else { jQuery.ajax({ type: "POST", url: Path, data: JSON.stringify(data), dataType: 'json', contentType: 'application/json', success: function(msg) { alert(msg); } }); } 
+8
json javascript xdr
source share
1 answer

Your server side script may be wrong. this code seems correct ...

0
source share

All Articles