0
SYNCHRON 전화로 ajaxSubmit : 다른 방법으로, 때로는jQuery를 : 나는 중앙 자바 스크립트 기능이
function storeProperties() {
$("form#systemProperties").ajaxSubmit({
data: $("form#systemProperties").serialize(),
type: 'post',
url: '?url=super',
success: function(response) {
/* output & co */
}
});
}
이 방법은 때때로 그 자체로 불려가, 예 :
이function sendMessage() {
storeProperties(); /* it's a precondition */
/* let's do some magic */
}
문제는 storeProperties()
은 비동기식으로 완료되고 ajaxSubmit
은 아직 처리됩니다. 불행히도 마법은 storeProperties()
이 완료되기 전에 시작하면 안됩니다.
storeProperties()
통화를 동기화하거나 완료되면 즉시 두 번째 기능을 트리거 할 수 있습니까?storeProperties()
을 호출하는 기능이 한 가지 더 많습니다.
감사합니다.
로 함수를받을 수 storeProperties 업데이트되었습니다. 나는. storeProperties()를 호출하면 – Jim