jquery의 게시 api에 문제가 있습니다.Jquery post> 성공하지 못함
$(".MGdi").click(function() {
id=$(this).attr("rel")
$.post('Mdeger.asp?cmd=MG', { id: id, drm: $(this).html()} ,
function(data) {
var $response=$(data);
var snc = $response.find('#snc').html();
alert(snc);
},"application/x-www-form-urlencoded");
});
또 다른 방법은 다음과 같습니다
$(".Pasif").click(function() {
id=$(this).attr("rel")
$.post('Mdeger.asp?cmd=Pasif', { id: id, drm: $(this).html()} ,
function(data) {
$(this).html(data);
alert(data)
},"application/x-www-form-urlencoded");
});
모든 서버 쪽하지만 클라이언트 측의 성공 기능은 아무것도하지 않습니다에 OK입니다. 기본 코드도 alert("hoho")
과 같습니다. 성공하지 못했습니다.
나는 해결책을 찾지 못했지만이 문제가 있으면 jax를 사용하는 것이 좋습니다 :) –