代码之家  ›  专栏  ›  技术社区  ›  Shaoz

在jqueryajax中使用jqueryui对话框

  •  0
  • Shaoz  · 技术社区  · 14 年前

    代码如下:

    var form = document.forms["orderDefinition"];
    
    form.elements["formChangeRequest"].value = "true";
    $.ajax({
      type: "POST",
      url: "ajax/possibleValues.html",
      data: $("form#orderDefinition").serialize(),
      success: function(response){
        $('#usercontent .sleeve .toprow').html(response);
        applyValidation();
      }
    });
    
    $("#waitingMsg").ajaxStart(function(){
          $(this).dialog({modal: true});
      }).ajaxStop(function(){
          $("#waitingMsg").hide();
     });
    

    1 回复  |  直到 14 年前
        1
  •  1
  •   Marimuthu Madasamy    14 年前

    可以使用的“beforeSend”和“complete”回调 .ajax()

    从文件来看,

    “beforeSend在 XMLHttpRequest对象作为参数。 饰面,无论是否失效