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

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

?? aa.js

?? 開發環境:windows xp sp2 + Eclipse5+TOMCAT5.5+mysql5.0 系統語言:jsp+struts1.2+ajaxanywhere1.2 測試平臺:windo
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/*
Copyright 2005  Vitaliy Shevchuk (shevit@users.sourceforge.net)

   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.

*/

AjaxAnywhere.defaultInstanceName = "default";

// constructor;
function AjaxAnywhere() {

    this.id = AjaxAnywhere.defaultInstanceName;
    this.formName = null;
    this.notSupported = false;
    this.delayBeforeContentUpdate = true;
    this.delayInMillis = 100;

    if (window.XMLHttpRequest) {
        this.req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        try {
            this.req = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            try {
                this.req = new ActiveXObject("Microsoft.XMLHTTP");
            } catch(e1) {
                this.notSupported = true;
                /* XMLHTTPRequest not supported */
            }
        }
    }

    if (this.req == null || typeof this.req == "undefined")
        this.notSupported = true;
}

/**
* Stores substitutes SubmitButton names in to redo sustitution if a button was eventually inside a refresh zone.
*/
AjaxAnywhere.prototype.substitutedSubmitButtons = new Array();
AjaxAnywhere.prototype.substitutedSubmitButtonsInfo = new Object();

/**
* Returns a Form object that corresponds to formName property of this AjaxAnywhere class instance.
*/
AjaxAnywhere.prototype.findForm = function () {
    var form;
    if (this.formName != null)
        form = document.forms[this.formName];
    else if (document.forms.length > 0)
        form = document.forms[0];

    if (typeof form != "object")
        alert("AjaxAnywhere error: Form with name [" + this.formName + "] not found");
    return form;
}


/**
* Binds this instance to window object using "AjaxAnywhere."+this.id as a key.
*/
AjaxAnywhere.prototype.bindById = function () {
    var key = "AjaxAnywhere." + this.id;
    window[key] = this;
}

/**
* Finds an instance by id.
*/
AjaxAnywhere.findInstance = function(id) {
    var key = "AjaxAnywhere." + id;
    return window[key];
}

/**
* This function is used to submit all form fields by AJAX request to the server.
* If the form is submited with <input type=submit|image>, submitButton should be a reference to the DHTML object. Otherwise - undefined.
*/
AjaxAnywhere.prototype.submitAJAX = function(additionalPostData, submitButton) {

    if (this.notSupported)
        return this.onSubmitAjaxNotSupported(additionalPostData, submitButton);

    if (additionalPostData == null || typeof additionalPostData == "undefined")
        additionalPostData = "";

    this.bindById();

    var form = this.findForm();

    var actionAttrNode = form.attributes["action"];
    var url = actionAttrNode == null?null:actionAttrNode.nodeValue;
    if ((url == null) || (url == ""))
        url = location.href;

    var pos = url.indexOf("#");
        if (pos!=-1)
            url = url.substring(0,pos);
        if ((url == null) || (url == ""))
            url = location.href;
        pos = url.indexOf("#");
        if (pos!=-1)
            url = url.substring(0,pos);

    var zones = this.getZonesToReload(url, submitButton);

    if (zones == null) {
        // submit in tradiditional way :
        this.submitOld(form,submitButton)
        return;
    }

    this.dropPreviousRequest();

    this.req.open("POST", url, true);
    this.req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");

    var postData = this.preparePostData(submitButton);

    if (zones != "")
        postData = '&aazones=' + encodeURIComponent(zones) + "&" + postData + "&" + additionalPostData;
    else
        postData += "&" + additionalPostData;

    this.sendPreparedRequest(postData);

}
/**
* sends a GET request to the server.
*/
AjaxAnywhere.prototype.getAJAX = function(url, zonesToRefresh) {
    if (this.notSupported)
        return this.onGetAjaxNotSupported(url);

    this.bindById();

    if (zonesToRefresh == null || typeof zonesToRefresh == "undefined")
        zonesToRefresh = "";
    var urlDependentZones = this.getZonesToReload(url);
    if (urlDependentZones == null) {
        location.href = url;
        return;
    }

    if (urlDependentZones.length != 0)
        zonesToRefresh += "," + urlDependentZones;

    this.dropPreviousRequest();

    url += (url.indexOf("?") != -1) ? "&" : "?";

    url += "aaxmlrequest=true&aa_rand=" + Math.random();
    // avoid caching

    if (zonesToRefresh != null && zonesToRefresh != "")
        url += '&aazones=' + encodeURIComponent(zonesToRefresh);

    this.req.open("GET", url, true);

    this.sendPreparedRequest("");
}

/**
* @private
*/
AjaxAnywhere.prototype.sendPreparedRequest = function (postData) {
    this.req.setRequestHeader("Accept", "text/xml");

    var callbackKey = this.id + "_callbackFunction";
    if (typeof window[callbackKey] == "undefined")
        window[callbackKey] = new Function("AjaxAnywhere.findInstance(\"" + this.id + "\").callback(); ");
    this.req.onreadystatechange = window[callbackKey];

    this.showLoadingMessage();

    this.req.send(postData);

    this.onRequestSent();
}
/**
* Used internally by AjaxAnywhere. Aborts previous request if not completed.
*/
AjaxAnywhere.prototype.dropPreviousRequest = function() {
    if (this.req.readyState != 0 && this.req.readyState != 4) {
        // abort previous request if not completed
        this.req.abort();
        this.handlePrevousRequestAborted();
    }
}

/**
* Internally used to prepare Post data.
* If the form is submited with <input type=submit|image>, submitButton is a reference to the DHTML object. Otherwise - undefined.
*/
AjaxAnywhere.prototype.preparePostData = function(submitButton) {
    var form = this.findForm();
    var result = "&aaxmlrequest=true";
    for (var i = 0; i < form.elements.length; i++) {
        var el = form.elements[i];
        if (el.tagName.toLowerCase() == "select") {
            for (var j = 0; j < el.options.length; j++) {
                var op = el.options[j];
                if (op.selected)
                    result += "&" + encodeURIComponent(el.name) + "=" + encodeURIComponent(op.value);
            }
        } else if (el.tagName.toLowerCase() == "textarea") {
            result += "&" + encodeURIComponent(el.name) + "=" + encodeURIComponent(el.value);
        } else if (el.tagName.toLowerCase() == "input") {
            if (el.type.toLowerCase() == "checkbox" || el.type.toLowerCase() == "radio") {
                if (el.checked)
                    result += "&" + encodeURIComponent(el.name) + "=" + encodeURIComponent(el.value);
            } else if (el.type.toLowerCase() == "submit") {
                if (el == submitButton) // is "el" the submit button that fired the form submit?
                    result += "&" + encodeURIComponent(el.name) + "=" + encodeURIComponent(el.value);
            } else if (el.type.toLowerCase() != "button") {
                result += "&" + encodeURIComponent(el.name) + "=" + encodeURIComponent(el.value);
            }
        }
    }
    if (typeof submitButton != 'undefined' && submitButton != null && submitButton.type.toLowerCase() == "image") {
        if (submitButton.name == null || submitButton.name == "" || typeof submitButton.name == "undefined")
            result += "&x=1&y=1"; // .x and .y coordinates calculation is not supported.
        else
            result += "&" + encodeURIComponent(submitButton.name) + ".x=1&" +
                      encodeURIComponent(submitButton.name) + ".y=1";
    }
    return result;
}

/**
* Pauses the thread of execution for the specified number of milliseconds
* @private
*/
function delay(millis) {
    date = new Date();
    var curDate = null;
    do {
        curDate = new Date();
    }
    while (curDate - date < millis);
}

/**
* A callback. internally used
*/
AjaxAnywhere.prototype.callback = function() {

    if (this.req.readyState == 4) {

        this.onBeforeResponseProcessing();
        this.hideLoadingMessage();

        if (this.req.status == 200) {

            if (this.req.getResponseHeader('content-type').toLowerCase().substring(0, 8) != 'text/xml')
                alert("AjaxAnywhere error : content-type in not text/xml : [" + this.req.getResponseHeader('content-type') + "]");

            var docs = this.req.responseXML.getElementsByTagName("document");
            var redirects = this.req.responseXML.getElementsByTagName("redirect");
            var zones = this.req.responseXML.getElementsByTagName("zone");
            var exceptions = this.req.responseXML.getElementsByTagName("exception");
            var scripts = this.req.responseXML.getElementsByTagName("script");
            var images = this.req.responseXML.getElementsByTagName("image");

            if (redirects.length != 0) {
                var newURL = redirects[0].firstChild.data;
                location.href = newURL;
            }
            if (docs.length != 0) {
                var newContent = docs[0].firstChild.data;

                //cleanup ressources
                delete this.req;

                document.close();
                document.write(newContent);
                document.close();
            }

            if (images.length != 0) {
                var preLoad = new Array(images.length);
                for (var i = 0; i < images.length; i++) {
                    var img = images[i].firstChild;
                    if (img != null) {
                        preLoad[i] = new Image();
                        preLoad[i].src = img.data;
                    }
                }
                if (this.delayBeforeContentUpdate) {
                    delay(this.delayInMillis);
                }
            }

            if (zones.length != 0) {
                for (var i = 0; i < zones.length; i++) {
                    var zoneNode = zones[i];

                    var name = zoneNode.getAttribute("name");
                    var id = zoneNode.getAttribute("id");

                    var html = "";

                    for (var childIndex = 0; childIndex < zoneNode.childNodes.length; childIndex++) {
                        html += zoneNode.childNodes[childIndex].data
                    }

                    var zoneHolder = name!=null?
                                     document.getElementById("aazone." + name):
                                     document.getElementById(id);

                    if (zoneHolder != null && typeof(zoneHolder) != "undefined") {
                        zoneHolder.innerHTML = html;
                    }

                }
            }
            if (exceptions.length != 0) {
                var e = exceptions[0];
                var type = e.getAttribute("type");
                var stackTrace = e.firstChild.data;
                this.handleException(type, stackTrace);
            }

            if (scripts.length != 0) {
                for (var $$$$i = 0; $$$$i < scripts.length; $$$$i++) {
                    // use $$$$i variable to avoid collision with "i" inside user script
                    var script = scripts[$$$$i].firstChild;
                    if (script != null) {
                        script = script.data;
                        if (script.indexOf("document.write") != -1) {
                            this.handleException("document.write", "This script contains document.write(), which is not compatible with AjaxAnywhere : \n\n" + script);
                        } else {

                            eval("var aaInstanceId = \""+this.id+"\"; \n"+script);
                        }
                    }
                }

                var globals = this.getGlobalScriptsDeclarationsList(script);
                if (globals != null)
                    for (var i in globals) {
                        var objName = globals[i];
                        try {
                            window[objName] = eval(objName);
                        } catch(e) {
                        }
                    }
            }

        } else {
            if (this.req.status != 0)
                this.handleHttpErrorCode(this.req.status);
        }
        this.restoreSubstitutedSubmitButtons();
        this.onAfterResponseProcessing();

    }


}

/**
*  Default sample loading message show function. Overrride it if you like.
*/
AjaxAnywhere.prototype.showLoadingMessage = function() {

    var div = document.getElementById("AA_" + this.id + "_loading_div");
    if (div == null) {
        div = document.createElement("DIV");

        document.body.appendChild(div);
        div.id = "AA_" + this.id + "_loading_div";

        div.innerHTML = "&nbsp;Loading...";

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品理论片a级大结局| 99久久婷婷国产综合精品 | 欧美中文一区二区三区| 亚洲女同ⅹxx女同tv| 色美美综合视频| 日韩av在线免费观看不卡| 日韩美女一区二区三区| 国产激情视频一区二区三区欧美| 中文字幕欧美区| 欧美午夜在线一二页| 欧美aaaaaa午夜精品| 久久久久久久久蜜桃| 色综合久久99| 日韩精品视频网| 欧美激情中文字幕一区二区| 色av成人天堂桃色av| 奇米777欧美一区二区| 国产日产亚洲精品系列| 欧美在线小视频| 国产一区在线不卡| 亚洲黄色小说网站| 日韩三级中文字幕| 91首页免费视频| 日韩经典一区二区| 日本一区二区三区国色天香| 欧美亚一区二区| 国内精品伊人久久久久av一坑| 成人免费小视频| 欧美一级黄色录像| 91美女蜜桃在线| 九色综合国产一区二区三区| 亚洲人成网站在线| 欧美va亚洲va香蕉在线| 一本到三区不卡视频| 青青草97国产精品免费观看 | 一本一道综合狠狠老| 久久精品av麻豆的观看方式| 亚洲欧美日韩一区| 久久久亚洲国产美女国产盗摄 | 成人午夜av电影| 亚洲成人精品在线观看| 国产欧美一区二区精品婷婷| 欧美日韩日本视频| 99国产精品久| 久久精品噜噜噜成人88aⅴ| 亚洲愉拍自拍另类高清精品| 久久久久久久综合狠狠综合| 欧美日韩国产免费| 色噜噜偷拍精品综合在线| 国产a精品视频| 免费黄网站欧美| 亚洲国产精品久久艾草纯爱| 欧美国产日韩a欧美在线观看| 日韩欧美卡一卡二| 日韩欧美一级特黄在线播放| 一本大道综合伊人精品热热 | 99久久久精品| 国产激情91久久精品导航| 麻豆中文一区二区| 视频一区欧美精品| 午夜精品一区二区三区免费视频| 亚洲图片激情小说| 国产精品视频一区二区三区不卡| 国产午夜精品久久久久久久| 日韩美女视频在线| 日韩欧美在线影院| 67194成人在线观看| 欧美猛男超大videosgay| 91福利国产成人精品照片| 99国产精品一区| 91视频你懂的| 色综合久久中文字幕| 99久久婷婷国产| 91麻豆国产香蕉久久精品| 白白色 亚洲乱淫| 99久久精品国产精品久久| 波多野结衣亚洲一区| 成人av集中营| 91美女在线观看| 色婷婷av一区二区三区大白胸| 一本到高清视频免费精品| 日本道免费精品一区二区三区| 91啪亚洲精品| 欧美亚一区二区| 4438x成人网最大色成网站| 欧美一区二区三区不卡| 日韩写真欧美这视频| 日韩欧美电影在线| 精品国产露脸精彩对白| 国产日产欧美一区二区三区| 国产精品久久久久久福利一牛影视 | 亚洲视频图片小说| 日本一区二区三区dvd视频在线| 国产精品每日更新| 亚洲私人黄色宅男| 午夜a成v人精品| 久久国产乱子精品免费女| 国产成人在线色| 色综合天天狠狠| 日韩亚洲欧美成人一区| 国产亚洲精品久| 亚洲天堂成人网| 日韩综合小视频| 91麻豆.com| 欧美日韩一区中文字幕| 日韩一区二区免费在线电影| 久久影院午夜片一区| 18欧美亚洲精品| 日韩影视精彩在线| 国产精品综合在线视频| 色综合久久88色综合天天6| 这里只有精品视频在线观看| 久久五月婷婷丁香社区| 亚洲美女视频在线| 蜜臀精品一区二区三区在线观看 | 久久不见久久见中文字幕免费| 国产一区二区三区日韩| 91一区二区在线观看| 日韩欧美国产一区二区在线播放| 国产精品色在线| 天天av天天翘天天综合网| 国产精品资源在线观看| 欧美日本在线看| 国产日产欧美一区| 日本不卡视频在线观看| av亚洲产国偷v产偷v自拍| 日韩一区二区三区免费观看| 亚洲日本欧美天堂| 国产乱国产乱300精品| 欧美日韩五月天| 国产精品丝袜黑色高跟| 久久99热99| 欧美视频你懂的| 日韩一区中文字幕| 激情五月激情综合网| 欧美日韩亚洲综合一区二区三区 | 亚洲一区在线观看视频| 国产寡妇亲子伦一区二区| 9191久久久久久久久久久| 国产精品美日韩| 久久99国产乱子伦精品免费| 欧美性欧美巨大黑白大战| 综合分类小说区另类春色亚洲小说欧美| 免费亚洲电影在线| 欧美日韩黄色一区二区| 亚洲精品免费看| 成人黄色综合网站| 久久久www免费人成精品| 青椒成人免费视频| 欧美精品日韩综合在线| 亚洲综合色区另类av| 一本久道中文字幕精品亚洲嫩| 国产精品色一区二区三区| 韩国av一区二区| www成人在线观看| 青青草一区二区三区| 91精品国产乱| 视频在线在亚洲| 制服丝袜中文字幕亚洲| 亚洲午夜影视影院在线观看| 日本丶国产丶欧美色综合| 一区二区三区蜜桃| 一本久久综合亚洲鲁鲁五月天| 日韩美女视频一区二区| 99久久99久久综合| 亚洲三级在线免费观看| 91看片淫黄大片一级在线观看| 欧美激情一区在线| 成人av午夜电影| 综合电影一区二区三区| 日本韩国欧美国产| 亚欧色一区w666天堂| 欧美日韩国产中文| 五月婷婷色综合| 日韩视频在线一区二区| 精品一区中文字幕| 国产日韩精品一区二区浪潮av | 一区二区免费在线播放| 在线影视一区二区三区| 亚洲v精品v日韩v欧美v专区| 欧美久久久久免费| 久久国产欧美日韩精品| 国产亚洲综合在线| 9色porny自拍视频一区二区| 亚洲色图在线播放| 欧美美女bb生活片| 久久av老司机精品网站导航| 国产欧美一区二区精品秋霞影院 | 欧美久久一二区| 韩国理伦片一区二区三区在线播放| 久久久精品影视| 91亚洲精品乱码久久久久久蜜桃 | 色婷婷国产精品| 日韩精品一卡二卡三卡四卡无卡| 日韩美女视频在线| 高潮精品一区videoshd| 一区二区三区成人| 日韩午夜在线影院| 成人激情动漫在线观看| 一区二区三区不卡视频|