【问题标题】:How to specify Synchronous request in Dajax or Dajaxice?如何在 Dajax 或 Dajaxice 中指定同步请求?
【发布时间】:2013-04-04 17:17:12
【问题描述】:

我需要在 Dajax 或 Dajaxice 请求中设置 jQuery.ajax() 的等效“异步”设置,以避免在我的 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.

谢谢。

【问题讨论】:

    标签: ajax django jquery dajaxice dajax


    【解决方案1】:

    好的,我认为这还不可能。 为了解决这个问题,我将代码放在“my_js_callback”函数中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-21
      • 1970-01-01
      • 2012-04-22
      • 1970-01-01
      • 2012-04-20
      • 2012-04-25
      • 2017-06-01
      相关资源
      最近更新 更多