2013-04-12 24 views
0

我需要在Dajax或Dajaxice請求中設置jQuery.ajax()的等效「異步」設置,以避免在Dajaxice回調結束之前繼續執行腳本。如何在Dajax或Dajaxice中指定同步請求?

$(".some_selector").click(
    Dajaxice.apps.forum.forum_com(my_js_callback, {'id':$(this).attr("id")}); 
    // More js code here.. Here should not continue before call ends. 

謝謝。

回答

0

好吧,我認爲這是不可能的。 要解決這個問題,我把我的代碼放在「my_js_callback」函數中。