私はBlackberry Webworksに非常に慣れていません。2つの値を受け入れるAsp.net WebサービスにjQuery ajaxリクエストを書いているとき。Error Bad request を返します。テスト用にRipple for Chromeプラグインを使用しています。コードは
jQuery.support.cors = true;
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "http://xyz.in/webservice.asmx/backup_p",
data: "{ 'id': '1', 'data': '4' }",
dataType: "json",
success: function (msg) {
alert('sucess !!!');
alert(msg.d);
},
error: function (jqXHR, textStatus, errorThrown) {
alert('hello');
alert(jqXHR + " : " + textStatus + " : " + errorThrown);
}
});
私は多くの方法を試しましたが、解決策はありませんでした。リップルとか関係あるの?