jQuery + Web Service + Cross Domain -


i have web service , calling jquery, works fine until remain on same server, when try call service other domain don't please me. below code :

$.ajax({ type: 'post', url: 'http://-----------/service.asmx/bulkupdate', data:"{'caseid': '"+caseid+"'}", contenttype : "application/json; charset=utf-8;", "datatype" : "json",  success: function(xdata, status)  { alert(xdata.d); } ,error : function(xhr) { alert(xhr.responsetext);  } }); 

try using jsonp, if cross domain issue. below

"datatype":"jsonp" 

or

you can configure server allow request other domain. fine think.

hope solves question.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -