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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? aa.js

?? 開發(fā)環(huán)境:windows xp sp2 + Eclipse5+TOMCAT5.5+mysql5.0 系統(tǒng)語(yǔ)言:jsp+struts1.2+ajaxanywhere1.2 測(cè)試平臺(tái):windo
?? JS
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*
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...";

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久免费看少妇高潮| 欧美高清在线一区二区| 粉嫩av亚洲一区二区图片| 夜夜夜精品看看| 久久精品一区蜜桃臀影院| 欧美美女一区二区| av中文字幕在线不卡| 美女一区二区三区在线观看| 国产精品国产自产拍在线| 日韩亚洲欧美成人一区| 欧美性三三影院| 91影视在线播放| 国产不卡视频在线观看| 奇米在线7777在线精品| 一区二区在线看| 亚洲人快播电影网| 国产精品网站在线观看| xvideos.蜜桃一区二区| 日韩精品在线一区二区| 欧美精选午夜久久久乱码6080| 96av麻豆蜜桃一区二区| caoporn国产一区二区| 成人激情黄色小说| 成人一区二区视频| 国产精品一区二区男女羞羞无遮挡| 亚洲 欧美综合在线网络| 亚洲国产乱码最新视频| 一区二区在线观看视频| 一区二区三区日韩欧美| 一区二区三区在线免费观看| 一区二区中文字幕在线| 国产精品污www在线观看| 国产清纯白嫩初高生在线观看91 | 亚洲成av人**亚洲成av**| 综合欧美一区二区三区| 日韩理论在线观看| 一区二区日韩电影| 亚洲一区二区三区视频在线播放| 一区二区三区在线免费视频| 亚洲综合丁香婷婷六月香| 亚洲一区在线观看视频| 午夜精品福利一区二区三区蜜桃| 亚洲一区二区三区四区在线| 午夜精品久久久久久久99樱桃| 视频一区二区三区在线| 美女网站色91| 国产精品自拍在线| 波多野结衣视频一区| 91香蕉视频黄| 欧美色综合天天久久综合精品| 欧美理论片在线| 欧美大黄免费观看| 国产女人18水真多18精品一级做| 国产精品欧美一区二区三区| 一区二区三区在线观看欧美| 亚洲国产人成综合网站| 男女视频一区二区| 国产中文一区二区三区| 成人综合在线网站| 在线观看av一区| 日韩午夜在线观看视频| 亚洲国产精品国自产拍av| 亚洲日本电影在线| 欧美aaaaa成人免费观看视频| 国模一区二区三区白浆| 91色porny| 正在播放亚洲一区| 久久九九久久九九| 一区二区三区国产| 久久国产日韩欧美精品| av中文一区二区三区| 欧美日韩国产123区| 久久一区二区视频| 亚洲色图视频网站| 久久机这里只有精品| 91小视频在线| 精品对白一区国产伦| 亚洲乱码国产乱码精品精的特点 | 国产精品美女一区二区三区 | 大白屁股一区二区视频| 欧美三区在线视频| 久久久电影一区二区三区| 一级中文字幕一区二区| 激情久久久久久久久久久久久久久久| 成人av免费在线播放| 91精品国产品国语在线不卡| 国产欧美日韩久久| 蜜臀va亚洲va欧美va天堂| 色综合中文字幕国产| 日韩一级在线观看| 亚洲资源在线观看| 国产 欧美在线| 日韩一区二区三区高清免费看看| 综合欧美亚洲日本| 国产大片一区二区| 制服丝袜一区二区三区| 亚洲男人的天堂在线观看| 国产一区美女在线| 日韩小视频在线观看专区| 亚洲一区二区三区激情| 99久久精品国产网站| 久久一二三国产| 久久精品国产亚洲一区二区三区| 91精品福利视频| 国产精品免费看片| 国产成人精品一区二区三区四区| 欧美日韩精品一区二区在线播放| 国产精品乱码久久久久久| 狠狠v欧美v日韩v亚洲ⅴ| 欧美一区二区视频免费观看| 亚洲精品日韩综合观看成人91| 成人深夜在线观看| 久久久久国产精品免费免费搜索| 免费成人在线播放| 欧美一区二区高清| 午夜电影网亚洲视频| 欧美日韩在线播| 亚洲国产va精品久久久不卡综合| 色综合久久综合中文综合网| 国产精品理伦片| 成人ar影院免费观看视频| 国产欧美中文在线| 高清国产一区二区| 国产三级精品三级在线专区| 国产精品 欧美精品| 久久综合九色综合久久久精品综合| 日韩在线卡一卡二| 日韩天堂在线观看| 老汉av免费一区二区三区 | 欧美精品一级二级三级| 亚洲成人一二三| 4438成人网| 青青草精品视频| 日韩视频在线你懂得| 另类调教123区| 久久久久9999亚洲精品| 国产福利一区二区| 亚洲国产精品国自产拍av| 不卡电影免费在线播放一区| 国产精品亲子伦对白| 91麻豆免费在线观看| 亚洲精品国产品国语在线app| 在线观看亚洲精品| 亚洲成人免费看| 欧美成人午夜电影| 国产精品亚洲一区二区三区在线| 久久综合九色综合97_久久久| 国产成人综合视频| 亚洲欧洲成人精品av97| 欧美亚洲尤物久久| 美脚の诱脚舐め脚责91| 国产偷v国产偷v亚洲高清| 波多野结衣中文一区| 亚洲一区二区三区免费视频| 欧美一区二区三区电影| 国产精品77777| 亚洲精品亚洲人成人网| 91精品国产综合久久久久久久| 极品美女销魂一区二区三区| 国产精品丝袜久久久久久app| 色综合久久综合中文综合网| 亚洲成av人片在www色猫咪| 精品国产网站在线观看| 成人高清免费在线播放| 午夜精品久久久久久久久久久| 欧美精品一区二区三区蜜桃| av午夜一区麻豆| 免费观看一级欧美片| 国产精品女上位| 91精品免费观看| 成人性生交大合| 亚洲成a人片综合在线| 国产香蕉久久精品综合网| 91一区二区三区在线观看| 日韩黄色一级片| 国产精品久久久久久久久久免费看| 欧美色综合影院| 国产a视频精品免费观看| 亚洲一区二区三区四区在线免费观看| 欧美不卡激情三级在线观看| 97久久精品人人澡人人爽| 日本特黄久久久高潮| 亚洲欧洲日韩在线| 欧美成人video| 在线一区二区视频| 国产精品小仙女| 婷婷综合五月天| 亚洲日本一区二区三区| 久久亚洲综合色| 欧美日韩高清一区| 99久久综合精品| 免费成人小视频| 亚洲一二三区不卡| 欧美高清在线一区二区| 日韩精品一区二区三区在线 | 欧美国产1区2区| 日韩一区二区电影| 欧美性高清videossexo| 成人一区二区三区视频| 美洲天堂一区二卡三卡四卡视频|