Ajax -POST call with Jquery - cross domain
Hi,
Tried this..and this works on FF and Chrome..not on IE..though call goes to the function.Any pointers?
And is there any other way to make a cross -domain POST call..
Can we do it with JSON instead of JSONP?
- function (url, requestData) {
- var jqryXHR = $.ajax({
- type: 'POST',
- url: anotherDomainurl,
- dataType: 'jsonp',
- contentType: 'application/json; charset=UTF-8',
- data: {
- requestParams: requestData
- }
- });
- }