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); } }); }
json javascript xdr
Mathankumar
source share