2013-03-19 5 views
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는

답변

0

일반적으로이 오류가 온다. 데이터를보십시오 : JSONP 그리고 도움이되는지보십시오.