zoukankan      html  css  js  c++  java
  • [转载]__pendingCallbacks[...].async' 为空或不是对象

    __pendingCallbacks[...].async' 为空或不是对象

    <script type="text/javascript">
    function WebForm_CallbackComplete_SyncFixed() {
      // SyncFix: the original version uses "i" as global thereby resulting in javascript errors when "i" is used elsewhere in consuming pages
      for (var i = 0; i < __pendingCallbacks.length; i++) {
       callbackObject = __pendingCallbacks[ i ];
      if (callbackObject && callbackObject.xmlRequest && (callbackObject.xmlRequest.readyState == 4)) {
       // the callback should be executed after releasing all resources
       // associated with this request.
       // Originally if the callback gets executed here and the callback
       // routine makes another ASP.NET ajax request then the pending slots and
       // pending callbacks array gets messed up since the slot is not released
       // before the next ASP.NET request comes.
       // FIX: This statement has been moved below
       // WebForm_ExecuteCallback(callbackObject);
       if (!__pendingCallbacks[ i ].async) {
         __synchronousCallBackIndex = -1;
       }
       __pendingCallbacks[i] = null;

       var callbackFrameID = "__CALLBACKFRAME" + i;
       var xmlRequestFrame = document.getElementById(callbackFrameID);
       if (xmlRequestFrame) {
         xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);
       }

       // SyncFix: the following statement has been moved down from above;
       WebForm_ExecuteCallback(callbackObject);
      }
     }
    }

    window.onload = function(){
    if (typeof (WebForm_CallbackComplete) == "function") {
      // set the original version with fixed version
      WebForm_CallbackComplete = WebForm_CallbackComplete_SyncFixed;
    }
    }
    </script>

  • 相关阅读:
    元素的隐藏和显示
    dateformat-参数表
    HTTP缓存控制小结
    Shell 快捷键
    PHP中的cURL库
    选择排序法
    双系统重装windows后如何恢复ubuntu启动项
    dell 3420 独立显卡黄色感叹号不能用问题
    YUY数据转换为RGB数据,并进行灰度化处理显示
    ubuntu 15.04安装显卡驱动,出现登录界面闪烁得解决方案(dell 3420 )
  • 原文地址:https://www.cnblogs.com/olartan/p/1460000.html
Copyright © 2011-2022 走看看