2010-04-16 6 views

답변

1

,

... 
success: function(data) { 

    howToPost(data.recordID); //or whatever 

} 
.... 

에 희망이 도움이됩니다.

0
$.ajax({ 
    type: "POST", url: '/file/to/post.to.php' , data: {recordID:recordID}, success: function(data) { 
     alert(recordID) 
    } 
}); 

그 일을 하는가에 아약스의 성공과 이후의 응답을 얻을 수있는 방법이 기능 때문에

function onclickRowRecord(recordID) { 

    $.ajax({ 
    type: "POST", 
    url: '/file/to/post.to.php' , 
    data: {recordID:recordID}, 
    success: function(data) { 

    //how to post this to function howToPost(recordID) the recordID 

    } 
    });   
} 

function howToPost(recordID){ 
alert(recordID); 
} 

있나요? 일종의 새로운 jQuery를

다음은 hotToPost 함수를 호출 의미 포스트 경우