亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? engine.js

?? dwr 源文件 dwr 源文件 dwr 源文件
?? JS
?? 第 1 頁 / 共 3 頁
字號:
/*
 * Copyright 2005 Joe Walker
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Declare a constructor function to which we can add real functions.
 * @constructor
 */
if (DWREngine == null) {
  var DWREngine = {};
}

/**
 * The real session id should be filled in by the server
 */
DWREngine._httpSessionId = "${httpSessionId}";

/**
 * The real page id should be filled in by the server
 */
DWREngine._scriptSessionId = "${scriptSessionId}";

/**
 * Set an alternative error handler from the default alert box.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.setErrorHandler = function(handler) {
  DWREngine._errorHandler = handler;
};

/**
 * Set an alternative warning handler from the default alert box.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.setWarningHandler = function(handler) {
  DWREngine._warningHandler = handler;
};

/**
 * Set a default timeout value for all calls. 0 (the default) turns timeouts off.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.setTimeout = function(timeout) {
  DWREngine._timeout = timeout;
};

/**
 * The Pre-Hook is called before any DWR remoting is done.
 * @see http://getahead.ltd.uk/dwr/browser/engine/hooks
 */
DWREngine.setPreHook = function(handler) {
  DWREngine._preHook = handler;
};

/**
 * The Post-Hook is called after any DWR remoting is done.
 * @see http://getahead.ltd.uk/dwr/browser/engine/hooks
 */
DWREngine.setPostHook = function(handler) {
  DWREngine._postHook = handler;
};

/** XHR remoting method constant. See DWREngine.setMethod() */
DWREngine.XMLHttpRequest = 1;

/** XHR remoting method constant. See DWREngine.setMethod() */
DWREngine.IFrame = 2;

/** XHR remoting method constant. See DWREngine.setMethod() */
DWREngine.ScriptTag = 3;

/**
 * Set the preferred remoting method.
 * @param newMethod One of DWREngine.XMLHttpRequest or DWREngine.IFrame
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setMethod = function(newMethod) {
  if (newMethod != DWREngine.XMLHttpRequest && newMethod != DWREngine.IFrame && newMethod != DWREngine.ScriptTag) {
    DWREngine._handleError("Remoting method must be one of DWREngine.XMLHttpRequest or DWREngine.IFrame or DWREngine.ScriptTag");
    return;
  }
  DWREngine._method = newMethod;
};

/**
 * Which HTTP verb do we use to send results? Must be one of "GET" or "POST".
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setVerb = function(verb) {
  if (verb != "GET" && verb != "POST") {
    DWREngine._handleError("Remoting verb must be one of GET or POST");
    return;
  }
  DWREngine._verb = verb;
};

/**
 * Ensure that remote calls happen in the order in which they were sent? (Default: false)
 * @see http://getahead.ltd.uk/dwr/browser/engine/ordering
 */
DWREngine.setOrdered = function(ordered) {
  DWREngine._ordered = ordered;
};

/**
 * Do we ask the XHR object to be asynchronous? (Default: true)
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setAsync = function(async) {
  DWREngine._async = async;
};

/**
 * @deprecated Use DWREngine.setReverseAjax
 */
DWREngine.setPolling = function() {
  DWREngine._handleError("DWREngine.setPolling() has been renamed to DWREngine.setReverseAjax()");
}

/**
 * Does DWR poll the server for updates? (Default: false)
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setReverseAjax = function(reverseAjax) {
  DWREngine._reverseAjax = reverseAjax;
  if (DWREngine._reverseAjax) {
    DWREngine._triggerNextPoll(0);
  }
};

/**
 * Does DWR us comet polling? (Default: true)
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setPollUsingComet = function(pollComet) {
  DWREngine._pollComet = pollComet;
};

/**
 * Set the preferred polling method.
 * @param newPollMethod One of DWREngine.XMLHttpRequest or DWREngine.IFrame
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setPollMethod = function(newPollMethod) {
  if (newPollMethod != DWREngine.XMLHttpRequest && newPollMethod != DWREngine.IFrame) {
    DWREngine._handleError("Polling method must be one of DWREngine.XMLHttpRequest or DWREngine.IFrame");
    return;
  }
  DWREngine._pollMethod = newPollMethod;
};

/**
 * Setter for the text/html handler - what happens if a DWR request gets an HTML
 * reply rather than the expected Javascript. Often due to login timeout
 */
DWREngine.setTextHtmlHandler = function(handler) {
  DWREngine._textHtmlHandler = handler;
}

/**
 * The default message handler.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.defaultMessageHandler = function(message) {
  if (typeof message == "object" && message.name == "Error" && message.description) {
    alert("Error: " + message.description);
  }
  else {
    // Ignore NS_ERROR_NOT_AVAILABLE
    if (message.toString().indexOf("0x80040111") == -1) {
      alert(message);
    }
  }
};

/**
 * For reduced latency you can group several remote calls together using a batch.
 * @see http://getahead.ltd.uk/dwr/browser/engine/batch
 */
DWREngine.beginBatch = function() {
  if (DWREngine._batch) {
    DWREngine._handleError("Batch already started.");
    return;
  }
  // Setup a batch
  DWREngine._batch = {
    map:{ callCount:0 },
    paramCount:0,
    ids:[],
    preHooks:[],
    postHooks:[]
  };
};

/**
 * Finished grouping a set of remote calls together. Go and execute them all.
 * @see http://getahead.ltd.uk/dwr/browser/engine/batch
 */
DWREngine.endBatch = function(options) {
  var batch = DWREngine._batch;
  if (batch == null) {
    DWREngine._handleError("No batch in progress.");
    return;
  }
  // Merge the global batch level properties into the batch meta data
  if (options && options.preHook) batch.preHooks.unshift(options.preHook);
  if (options && options.postHook) batch.postHooks.push(options.postHook);
  if (DWREngine._preHook) batch.preHooks.unshift(DWREngine._preHook);
  if (DWREngine._postHook) batch.postHooks.push(DWREngine._postHook);

  if (batch.method == null) batch.method = DWREngine._method;
  if (batch.verb == null) batch.verb = DWREngine._verb;
  if (batch.async == null) batch.async = DWREngine._async;
  if (batch.timeout == null) batch.timeout = DWREngine._timeout;

  batch.completed = false;

  // We are about to send so this batch should not be globally visible
  DWREngine._batch = null;

  // If we are in ordered mode, then we don't send unless the list of sent
  // items is empty
  if (!DWREngine._ordered) {
    DWREngine._sendData(batch);
    DWREngine._batches[DWREngine._batches.length] = batch;
  }
  else {
    if (DWREngine._batches.length == 0) {
      // We aren't waiting for anything, go now.
      DWREngine._sendData(batch);
      DWREngine._batches[DWREngine._batches.length] = batch;
    }
    else {
      // Push the batch onto the waiting queue
      DWREngine._batchQueue[DWREngine._batchQueue.length] = batch;
    }
  }
};

//==============================================================================
// Only private stuff below here
//==============================================================================

/** A function to call if something fails. */
DWREngine._errorHandler = DWREngine.defaultMessageHandler;

/** A function to call to alert the user to some breakage. */
DWREngine._warningHandler = DWREngine.defaultMessageHandler;

/** A function to be called before requests are marshalled. Can be null. */
DWREngine._preHook = null;

/** A function to be called after replies are received. Can be null. */
DWREngine._postHook = null;

/** An array of the batches that we have sent and are awaiting a reply on. */
DWREngine._batches = [];

/** In ordered mode, the array of batches waiting to be sent */
DWREngine._batchQueue = [];

/** A map of known ids to their handler objects */
DWREngine._handlersMap = {};

/** What is the default remoting method */
DWREngine._method = DWREngine.XMLHttpRequest;

/** What is the default remoting verb (ie GET or POST) */
DWREngine._verb = "POST";

/** Do we attempt to ensure that calls happen in the order in which they were sent? */
DWREngine._ordered = false;

/** Do we make the calls async? */
DWREngine._async = true;

/** The current batch (if we are in batch mode) */
DWREngine._batch = null;

/** The global timeout */
DWREngine._timeout = 0;

/** ActiveX objects to use when we want to convert an xml string into a DOM object. */
DWREngine._DOMDocument = ["Msxml2.DOMDocument.6.0", "Msxml2.DOMDocument.5.0", "Msxml2.DOMDocument.4.0", "Msxml2.DOMDocument.3.0", "MSXML2.DOMDocument", "MSXML.DOMDocument", "Microsoft.XMLDOM"];

/** The ActiveX objects to use when we want to do an XMLHttpRequest call. */
DWREngine._XMLHTTP = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"];

/** Are we doing reverse ajax? */
DWREngine._reverseAjax = false;

/** Is there a long term poll (comet) interraction in place? */
DWREngine._pollComet = true;

/** What is the default polling method */
DWREngine._pollMethod = DWREngine.XMLHttpRequest;
//DWREngine._pollMethod = DWREngine.IFrame;

/** The iframe that we are using to poll */
DWREngine._pollFrame = null;

/** The xhr object that we are using to poll */
DWREngine._pollReq = null;

/** How much data has been received into a reverse ajax document */
DWREngine._pollCometSize = 0;

/** How many milliseconds between internal comet polls */
DWREngine._pollCometInterval = 200;

/** Do we do a document.reload if we get a text/html reply? */
DWREngine._textHtmlHandler = null;

/**
 * @private Send a request. Called by the Javascript interface stub
 * @param path part of URL after the host and before the exec bit without leading or trailing /s
 * @param scriptName The class to execute
 * @param methodName The method on said class to execute
 * @param func The callback function to which any returned data should be passed
 *       if this is null, any returned data will be ignored
 * @param vararg_params The parameters to pass to the above class
 */
DWREngine._execute = function(path, scriptName, methodName, vararg_params) {
  var singleShot = false;
  if (DWREngine._batch == null) {
    DWREngine.beginBatch();
    singleShot = true;
  }
  // To make them easy to manipulate we copy the arguments into an args array
  var args = [];
  for (var i = 0; i < arguments.length - 3; i++) {
    args[i] = arguments[i + 3];
  }
  // All the paths MUST be to the same servlet
  if (DWREngine._batch.path == null) {
    DWREngine._batch.path = path;
  }
  else {
    if (DWREngine._batch.path != path) {
      DWREngine._handleError("Can't batch requests to multiple DWR Servlets.");
      return;
    }
  }
  // From the other params, work out which is the function (or object with
  // call meta-data) and which is the call parameters
  var params;
  var callData;
  var firstArg = args[0];
  var lastArg = args[args.length - 1];

  if (typeof firstArg == "function") {
    callData = { callback:args.shift() };
    params = args;
  }
  else if (typeof lastArg == "function") {
    callData = { callback:args.pop() };
    params = args;
  }
  else if (lastArg != null && typeof lastArg == "object" && lastArg.callback != null && typeof lastArg.callback == "function") {
    callData = args.pop();
    params = args;
  }
  else if (firstArg == null) {
    // This could be a null callback function, but if the last arg is also
    // null then we can't tell which is the function unless there are only
    // 2 args, in which case we don't care!
    if (lastArg == null && args.length > 2) {
      if (DWREngine._warningHandler) {
        DWREngine._warningHandler("Ambiguous nulls at start and end of parameter list. Which is the callback function?");
      }
    }
    callData = { callback:args.shift() };
    params = args;
  }
  else if (lastArg == null) {
    callData = { callback:args.pop() };
    params = args;
  }
  else {
    if (DWREngine._warningHandler) {
      DWREngine._warningHandler("Missing callback function or metadata object.");
    }
    return;
  }

  // Get a unique ID for this call
  var random = Math.floor(Math.random() * 10001);
  var id = (random + "_" + new Date().getTime()).toString();
  var prefix = "c" + DWREngine._batch.map.callCount + "-";
  DWREngine._batch.ids.push(id);

  // batchMetaData stuff the we allow in callMetaData for convenience
  if (callData.method != null) {
    DWREngine._batch.method = callData.method;
    delete callData.method;
  }
  if (callData.verb != null) {
    DWREngine._batch.verb = callData.verb;
    delete callData.verb;
  }
  if (callData.async != null) {
    DWREngine._batch.async = callData.async;
    delete callData.async;
  }
  if (callData.timeout != null) {
    DWREngine._batch.timeout = callData.timeout;
    delete callData.timeout;
  }

  // callMetaData stuff that we handle with the rest of the batchMetaData
  if (callData.preHook != null) {
    DWREngine._batch.preHooks.unshift(callData.preHook);
    delete callData.preHook;
  }
  if (callData.postHook != null) {
    DWREngine._batch.postHooks.push(callData.postHook);
    delete callData.postHook;
  }

  // ScriptTag method parameter - the scriptTagBase
  if (callData.scriptTagBase != null) {
    DWREngine._batch.scriptTagBase = callData.scriptTagBase;
    delete callData.scriptTagBase;
  }

  // Default the error and warning handlers

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本三级韩国三级欧美三级| 91在线免费播放| 日本美女一区二区三区视频| 亚洲伊人色欲综合网| 亚洲激情六月丁香| 亚洲黄色性网站| 亚洲色图一区二区| 亚洲激情图片qvod| 亚洲高清免费在线| 亚洲高清久久久| 丝袜美腿亚洲综合| 欧美aⅴ一区二区三区视频| 免费成人性网站| 国产乱子伦视频一区二区三区| 国产一区二区主播在线| 久草热8精品视频在线观看| 蜜桃精品在线观看| 国产乱国产乱300精品| 成人看片黄a免费看在线| 日韩激情中文字幕| 免费av成人在线| 肉丝袜脚交视频一区二区| 欧美一级精品在线| 丁香激情综合国产| 972aa.com艺术欧美| 免费亚洲电影在线| 亚洲第一在线综合网站| 精品美女在线播放| 欧美无砖专区一中文字| 爽爽淫人综合网网站| 国产精品色一区二区三区| 国产夜色精品一区二区av| 99久久免费精品| 久久精品国内一区二区三区| 韩国一区二区三区| 极品销魂美女一区二区三区| 在线精品国精品国产尤物884a| 色网综合在线观看| 色一情一伦一子一伦一区| 成人黄色在线视频| 久久91精品久久久久久秒播| 亚洲欧美综合另类在线卡通| 国产精品网站导航| 欧美xxxxx裸体时装秀| 欧美国产日产图区| 亚洲va欧美va人人爽午夜| 国产在线视视频有精品| 欧美久久高跟鞋激| 国产视频一区二区在线| 亚洲成人自拍一区| 国产精品主播直播| 在线不卡的av| 亚洲精品videosex极品| 国内精品写真在线观看| 欧美精品第1页| 精品黑人一区二区三区久久| 亚洲色图在线看| 国产69精品久久777的优势| 日韩欧美的一区| 舔着乳尖日韩一区| 色妞www精品视频| 中日韩免费视频中文字幕| 国产乱码精品一区二区三区av| 日韩精品自拍偷拍| 中文乱码免费一区二区| 激情久久五月天| 亚洲精品一线二线三线| 免费观看久久久4p| 亚洲精品在线三区| 国产精品资源网| 国产精品美女视频| 波波电影院一区二区三区| 国产精品全国免费观看高清| 日韩成人伦理电影在线观看| 丰满放荡岳乱妇91ww| 国产女同性恋一区二区| 国产91精品一区二区| 中文字幕的久久| 91麻豆蜜桃一区二区三区| 亚洲特级片在线| 欧美特级限制片免费在线观看| 一区二区三国产精华液| 欧美日韩久久一区二区| 麻豆成人91精品二区三区| 日韩免费高清av| 亚洲欧美在线aaa| 99久久婷婷国产综合精品电影| 一区二区在线观看不卡| 欧美精品v日韩精品v韩国精品v| 国内精品自线一区二区三区视频| 国产亚洲欧美一区在线观看| 91久久香蕉国产日韩欧美9色| 成人av在线一区二区三区| 国产美女一区二区| 91精品婷婷国产综合久久竹菊| 一区二区三区鲁丝不卡| 日韩精品中午字幕| 色吊一区二区三区 | 99精品久久只有精品| 婷婷综合另类小说色区| 国产欧美中文在线| 国内精品国产成人国产三级粉色| 久久免费偷拍视频| 欧美精品乱码久久久久久| 成人午夜大片免费观看| 日本亚洲一区二区| 亚洲精品日产精品乱码不卡| 精品免费一区二区三区| 欧美日韩国产综合一区二区| 国产成人午夜精品影院观看视频| 日韩精品久久久久久| 国产精品久久久久久久蜜臀| 久久夜色精品国产噜噜av | 久久精品亚洲精品国产欧美| 99久免费精品视频在线观看| 国产一区二区三区| 美女视频黄a大片欧美| 日本在线不卡视频一二三区| 亚洲一二三级电影| 亚洲欧美在线高清| 亚洲精品成人悠悠色影视| 国产精品国产自产拍在线| 午夜视频在线观看一区二区| 欧美另类高清zo欧美| 日本韩国欧美三级| 色综合久久久久| 欧美日本一区二区三区四区| 欧美三级视频在线| 日韩精品一区二区在线观看| 精品国产乱码久久久久久牛牛 | 欧美放荡的少妇| 在线观看91精品国产麻豆| 久久日一线二线三线suv| 久久久久久9999| 亚洲成人你懂的| 久久国产欧美日韩精品| 激情欧美一区二区| 成人av电影在线| 欧美日韩国产一级| 日本v片在线高清不卡在线观看| 亚洲福利视频一区二区| 韩国精品久久久| 色一情一乱一乱一91av| 精品国产乱码久久久久久牛牛| 国产精品污网站| 午夜成人在线视频| 国产呦萝稀缺另类资源| 欧美在线免费视屏| 久久一区二区三区四区| 国产美女精品一区二区三区| 国产在线精品一区在线观看麻豆| 91在线视频播放| 国产日韩精品一区二区三区在线| 香港成人在线视频| 成人激情午夜影院| 久久久久久久久久久久久久久99 | 国产精品日韩成人| 美女一区二区视频| 欧美三电影在线| 中文字幕一区二区三区av| 蜜臂av日日欢夜夜爽一区| 91色在线porny| 国产亚洲欧洲997久久综合| 日韩精品一级中文字幕精品视频免费观看 | 日本亚洲天堂网| 91美女福利视频| 亚洲精品视频一区二区| 91欧美激情一区二区三区成人| 国产精品天美传媒沈樵| 国产寡妇亲子伦一区二区| 欧美精品久久天天躁| 一区二区三区 在线观看视频| 不卡的av电影在线观看| 国产精品久久久久久久久搜平片| 国产精品综合久久| 国产欧美一区二区精品婷婷| 老司机精品视频导航| 精品国产乱码久久久久久浪潮 | 欧美日韩日日骚| 日韩精品欧美精品| 毛片不卡一区二区| 国产综合色产在线精品| 日韩免费观看高清完整版| 免费看欧美美女黄的网站| 久久综合久久综合久久综合| 亚洲国产欧美另类丝袜| 国产精品一级二级三级| 成人av综合在线| 欧美mv日韩mv| 青娱乐精品视频| 91精品国产综合久久久久| 国产一区二区三区不卡在线观看| 国产婷婷色一区二区三区四区| 老司机免费视频一区二区| 日韩视频免费观看高清完整版在线观看 | 91丝袜呻吟高潮美腿白嫩在线观看| 天堂av在线一区| 亚洲一区精品在线| 亚洲三级免费观看| 国产精品久久久久三级|