0
PUT 메서드로 ajax 호출을 만들려고합니다. 아래 코드는,하지만 난 오류 XML 구문 분석 오류로 점점 오전 : MOZ - nullprincipal : 어떤 요소는 위치를 찾을 수 없습니다 {c847a4af-f009-4907-a103-50874fcbbe35} 라인 수 1, 열 1 :PUT 메서드로 Ajax 호출
$.ajax({
type: "PUT",
async: true,
url: "http://localhost:8080/karthick/update",
data: JSON.stringify(params),
contentType: "application/json",
dataType: "JSON",
processdata: true,
success: function (json) { //On Successfull service call
},
error: function (xhr) {
alert(xhr.responseText);
}
});
return false;
};
function ServiceFailed(xhr) {
alert(xhr.responseText);
if (xhr.responseText) {
var err = xhr.responseText;
if (err)
error(err);
else
error({ Message: "Unknown server error." })
}
return;
}
하지만이 서비스는 Rest-client jar에서 잘 작동합니다. 또한 내 POST 메서드는 내 브라우저에서 제대로 작동합니다. 이걸 도와주세요. 크로스 브라우저 요청을 할 때
감사 Karthick는