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

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

?? ajax.js

?? 一個開源的rfid middleware 資料
?? JS
?? 第 1 頁 / 共 3 頁
字號:
    saveForm(form, null, function( AJAX ) {
        if (AJAX.readyState == 4) {
            if (AJAX.status == 200) {
                $('customerFormStatus').innerHTML = "<img src='./checkbox.gif' border=0 /> " + AJAX.statusText;
                $('customerFormStatus').style.color = null;
                form.save.disabled = true
            } else {
                $('customerFormStatus').innerHTML = AJAX.statusText
                $('customerFormStatus').style.color = 'red';
            }
        }
    });

    // do not submit form if this is a submit button
    return false;
}

<!----------------------------------- END "GET FORM VALUES" ------------------------------------->

<!----------------------------------- BEGIN CUSTOMERS BY STATE (NON-XML) ------------------------>


function getCustomersByState( state, target ) {
    // if no state given then clear out
    if (!state) {
        clearCustomersByState();
    } else {
        var state1_div = $('state1_div');
        state1_div.style.visibility = 'visible';
        return new AJAXRequest("post", "/ThinkCAP/servlet/get_customers", "state=" + encode(state),
                               processGetCustomersByState);
    }
}

function clearCustomersByState() {
    var state1_div = $('state1_div');
    state1_div.innerHTML = "";
    state1_div.style.visibility = 'hidden';
    document.getElementById("state1_info").innerHTML = "";
}

function processGetCustomersByState( myAJAX ) {
    if (myAJAX.readyState == 4) {
        if (myAJAX.status == 200) {
            var response = myAJAX.responseText;
            // Resonse text is in this format:
            //    state=XXX&customers=cust1!cust2!cust3!cust4
            var customers;

            var returnParms = response.split('&');

            for (var i = 0; i < returnParms.length; i++) {
                var pair = returnParms[i].split('=');

                if (pair[0] == "customers") {
                    customers = pair[1];

                    if (customers == "") {
                        custList = "No customers found.";
                        document.getElementById("state1_info").innerHTML = "";
                    } else {
                        var custList = customers.split("!");
                        document.getElementById("state1_info").innerHTML
                            = "&nbsp;&nbsp;&nbsp;" + custList.length + " customer" + (custList.length == 1 ? "" : "s") + " found";
                    }
                }
            }

            var div = document.getElementById("state1_div");

            if (div) {
                div.innerHTML
                    = "<ol style=\"padding-left:2em\"><li>" + decode(custList.join("<\/li><li>")) + "<\/li><\/ol>";
                div.style.visibility = "visible"
            }
        } else {
            alert("There was a problem retrieving the XML data:\n" + myAJAX.statusText);
        }
    }
}

<!------------------------------------- END CUSTOMERS BY STATE (NON-XML) ------------------------>


<!----------------------------------- BEGIN CUSTOMERS BY STATE WITH XML  ------------------------>


function getCustomersByStateXML( state ) {
    if (!state) {
        clearCustomersByStateXML();
    } else {
        return new AJAXRequest("post", "/ThinkCAP/servlet/get_customersXML", "state=" + encode(state), processGetCustomersByStateXML);
    }
}

function clearCustomersByStateXML() {
    var state2_div = document.getElementById("state2_div");
    state2_div.innerHTML = "Please enter a state...";
    $("state2_info").innerHTML = "";
}

function processGetCustomersByStateXML( myAJAX ) {
    if (myAJAX.readyState == 4) {
        if (myAJAX.status == 200) {
            logger(myAJAX.responseText);
            xml = myAJAX.responseXML;
            // Resonse text is in this format:
            //    state=XXX&customers=cust1!cust2!cust3!cust4

            var div = "";

            if (xml.documentElement) {
                var state = xml.documentElement.getElementsByTagName("state")[0].firstChild.nodeValue;
                var customers = xml.documentElement.getElementsByTagName("customer");

                if (customers.length <= 0) {
                    div += "<tr><td class=\"customers_by_state_error\">No customers found for state: <strong>" + state
                               + "<\/strong><\/td><\/tr>";
                } else {
                    document.getElementById("state2_info").innerHTML
                        = "&nbsp;&nbsp;&nbsp;" + customers.length + " customer" + 
				(customers.length == 1 ? "" : "s") + " found"

                    div += "<table>";

                    for (var i = 0; i < customers.length; i++) {
                        var cust = customers[i];
                        var id = customers[i].getAttributeNode("custnum").nodeValue;
                        var name = decode(customers[i].firstChild.firstChild.nodeValue);

                        div += "<tr>"
                        div += "<td class=\"cust_num\">" + id + "<\/td><td class=\"cust_name\">" + name + "<\/td>";
                        div += "<\/tr>";
                    }
                }

                div += "<\/table>";

                var state2_div = document.getElementById("state2_div");

                if (state2_div) {
                    state2_div.innerHTML = div;
                    state2_div.style.display = 'block';
                }
            }
        } else {
            alert("There was a problem retrieving the XML data:\n" + myAJAX.statusText);
        }
    }
}

<!------------------------------------- END CUSTOMERS BY STATE (XML) ------------------------>

<!------------------------------------- BEGIN SUGGEST --------------------------------------------->


// this function is called when the call to the google_suggest servlet (AJAXSuggest) is finished
// google returns 'sendRPCDone( .... )'
function sendRPCDone( notUsed, search_term, term_array, results_array, unused_array ) {
    var div = "<table>";

    if (results_array.length == 0) {
        div += "<tr><td class=\"search_error\">No results found for <strong>" + search_term + "<\/strong><\/td><\/tr>";
    } else {
        for (var i = 0; i < results_array.length; i++) {
            div += "<tr><td class=\"search_term\"><a href='http://www.google.com/search?q=" + encode(term_array[i]);
            div += "'>" + term_array[i] + '<\/a><\/td><td class="number_of_results">' + results_array[i]
                       + "<\/td><\/tr>";
        }
    }

    div += "<\/table>";
    var google_suggest_target = document.getElementById("google_suggest_target");

    if (google_suggest_target) {
        google_suggest_target.innerHTML = div;
    }
}

function clearSuggest() {}

function getSuggest( field ) {
    return new AJAXRequest("POST", "/ThinkCAP/servlet/ajax_suggest", "qu=" + encode(field.value));
}

<!------------------------------------- END SUGGEST --------------------------------------------->

_description = new Object();
_description.div_ping = function( ) {
    var desc = "<b>Ping</b><br>Ping sends the current date to the server. Basic AJAX functionality. See server console for date.";
    desc += "<br><br><b>Spam</b><br>Sends 10 pings to the server to show how long it takes to send 1 request to the server.";
    desc += "<br><br><b>Big File</b><br>Returns up to 10 megs from the server. Shows # of times onreadystatechange has been called (its a lot!).";
    desc += "<br>While the file is downloaded, you can work on other fields and see server activity. This shows that the behavior is truly asynchronous and multiple requests can be handled.";
    desc += "<br>The server stops sending data after 60 seconds so your file size might be smaller if you have a slower connection.";
    desc += "<br>If you shut down the server while downloading the big file, you will see an error message.";
    return desc;
};

_description.div_track_changes = function( ) {
    var desc = "<b>Track Changes As Fields Change</b><br>";
    desc += "As each field changes, the change is sent to the server. If all is well, the word OK shows up next to the field along with the text sent to the server.";
    desc += "<br>The server console shows the values sent to the server.";
    desc += "<br><br><b>Track Changes On Key Up</b><br>";
    desc += "As each key is released, the current value of the field is sent to the server. If all is well, the word OK shows up next to the field.";
    desc += "<br>The server console shows the values sent to the server.";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    return desc;
};

_description.div_dropdowns = function( ) {
    var desc = "<b>Drop Downs & Form Handling</b><br>";
    desc += "An AJAX call is made to the server to get the states and populate the select box (drop down). ";
    desc += "The server dynamically creates Javascript that is executed through an eval statement.";
    desc += "The final line of the Javascript calls the onchange event of the state drop down which then retrieves all the cities for that state.";
    desc += "<br><br>The city drop down is populated and its onchange event retrieves all the customers for a given city.";
    desc += "<br><br>When the customer changes, the server returns Javascript that replaces all customer fields with the appropriate values.";
    desc += "If you open the Track Changes section, you'll notice that both address fields on the page are updated.";
    desc += "<br><br>In the samples, if you add a new INPUT field that matches a column in the customer table, it will be populated for you during runtime";
    desc += "<br><br>The routines to retrieve the state, city, and customer dropdowns all use variations of encapsulating XMLHTTPRequests instead of using a global XMLHTTPRequest (_ajax).";
    desc += "<br><br><b>Save</b><br>Sends the contents of the customer form back to the server. A message is shown indicating a successful save or a failure.";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    return desc;
};

_description.div_customers_by_state = function( ) {
    var desc = "<b>Retrieve Customers By State (non-XML)</b><br>";
    desc += "This calls the server when the state is changed. The server returns a data set that includes the customer ID and the customer name. ";
    desc += "<br><br>Each pair is delimited by a comma, and each set is delimited by a !";
    desc += "<br><br>To see all customers, enter a '%' sign.";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    return desc;
};

_description.div_customers_by_state_xml = function( ) {
    var desc = "<b>Retrieve Customers By State (XML)</b><br>";
    desc += "This calls the server when the state is changed. The server returns a data set that includes the customer ID and the customer name. ";
    desc += "<br><br>The data is returned back as an XML document and the returnXML property of the XMLHTTPRequest is parsed to pull out the data.";
    desc += "<br><br>To see all customers, enter a '%' sign.";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    return desc;
};

_description.div_google_suggest_hack = function( ) {
    var desc = "<b>Google Suggests Hack</b><br>";
    desc += "This fires on each keystroke and calls the server passing the current search field.";
    desc += "<br><br>The server in turn calls the google suggest URL and then passes the results back to the user's browser.";
    desc += "<br><br>Google returns a Javascript method call to sendRPCDone(). We have our own sendRPCDone that loops through the results and presents the top 10 hits + # of pages.";
    desc += "<br><br>The reason Google is not called directly from the browser is that XMLHTTPRequest can only be used to call the orignal server or a trusted server setup in the Browser settings.";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    return desc;
};

_description.div_activity_log = function( ) {
    var desc = "<b>Activity Log</b><br>";
    desc += "Shows various activity logs for each of the examples.";
    desc += "<br><br>The log is shown with the most recent log item at the top of the list.";
    desc += "<br><br>To write to this log, use the logger() function in the Javascript.";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    return desc;
};

_description.default_text = function( ) {
    var desc = "<b>Basic AJAX Examples</b><br>";
    desc += "<br><b>The downloadable samples include full JavaScript & Java Source, a sample database for any SQL database, and a PowerPoint presentation.</b>";
    desc += "<br><br>This sampler shows some basic techniques to demonstrate some of the possibilities of using AJAX/XMLHTTPRequest techniques in web applications.";
    desc += "<br><br>Basic browser & server interaction is demonstrated along with dynamic population of visual elements such as DIVs and SELECT drop downs.";
    desc += "<br><br>In addition, many ways of instantiating & encapsulating XMLHTTPRequest objects are shown in the Javascript.";
    desc += "<br><br>This sample is freeware and has no copyright restrictions whatsoever. It is doesn't carry a warranty or a guarantee.";
    desc += "<br><br>Written by Steve Benfield.<br><a href='mailto:sbenfield@clearnova.com&subject=AJAX Samples' style='color:white' alt='email the author'>sbenfield@clearnova.com</a>";
    desc += "<br><br>";
    desc += "ClearNova provides ThinkCAP&trade;, a framework & visual workbench ideally suited for building Rich Internet Applications using AJAX techniques.";
    desc += "<br>For information on ThinkCAP, visit <a style='color:white' href='http://www.clearnova.com/thinkcap'>www.clearnova.com<\/a>";
    desc += "<br><br><h3>For Best Performance, Hide the Activity Log</h3>"
    desc += "<br><br><h3>This page is running on a development server--uptime is not guaranteed.</h3>"
    desc += "<br><br>Last Updated: July 15, 2005 | Version 1.1";

    return desc;
}

function toggleDiv( element ) {
    var e = $(element);

    if (e) {
        e.style.display = ((e.style.display != 'block') ? 'block' : 'none');
        $('div_upper_right').innerHTML = _description[e.id]();
    }
} 

function monitorSubmit() {
   

    document.forms['linkDummyForm'].submit();
    
 
}   
  function submitAgain() {
   tStart   = new Date();

   timerID  = setTimeout("monitorSubmit();", 5000);
}

 function pingjsfAgain() {
   tStart   = new Date();

   timerID  = setTimeout("pingjsf();", 10000);
}




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区| 亚洲你懂的在线视频| 26uuu亚洲综合色| 亚洲欧洲av一区二区三区久久| 亚洲女与黑人做爰| 国产精品一二三四五| 欧美伦理影视网| 一区二区三区四区在线| 国产一区二区三区美女| 在线成人av影院| 99热99精品| 激情成人午夜视频| 欧美日韩中字一区| 中文字幕一区不卡| 高清在线成人网| 日韩欧美国产不卡| 日韩高清在线观看| 欧美日韩在线一区二区| 一区二区三区四区在线免费观看 | 久久嫩草精品久久久精品一| 亚洲一级片在线观看| 91麻豆国产精品久久| 国产精品剧情在线亚洲| 国产成人av影院| 26uuu成人网一区二区三区| 琪琪久久久久日韩精品| 欧美精品一二三四| 亚洲国产精品一区二区久久恐怖片| 欧美日韩激情一区二区| 99久久伊人网影院| 欧洲激情一区二区| 日本少妇一区二区| 免费观看日韩av| 国产很黄免费观看久久| 日韩西西人体444www| 免费成人美女在线观看.| 欧美剧情片在线观看| 丝瓜av网站精品一区二区| 666欧美在线视频| 免费观看成人av| 日韩三级精品电影久久久| 久久aⅴ国产欧美74aaa| 久久精品日产第一区二区三区高清版| 国产麻豆精品视频| 中文字幕亚洲欧美在线不卡| 欧美午夜宅男影院| 日本中文字幕一区二区视频 | 丝袜诱惑制服诱惑色一区在线观看| 欧美日韩二区三区| 337p日本欧洲亚洲大胆精品| 日本视频免费一区| 精品福利一区二区三区| 精品一区二区三区免费| 久久亚洲私人国产精品va媚药| 美女一区二区久久| 国产日韩一级二级三级| 99re免费视频精品全部| 亚洲成人手机在线| 欧美成人伊人久久综合网| 国产丶欧美丶日本不卡视频| 国产精品美女久久久久久久久久久 | 欧美aⅴ一区二区三区视频| 欧美一区二区三区系列电影| 色综合激情五月| 国产亚洲精品久| 91国在线观看| 蜜臀a∨国产成人精品| 国产精品国产自产拍高清av| 欧美性猛片xxxx免费看久爱| 国产在线精品一区在线观看麻豆| 免费欧美高清视频| 国产精品萝li| 日韩一级片网站| 色久综合一二码| 国产一区二区三区精品视频 | 精品国精品国产| 99久久免费视频.com| 蜜桃av一区二区三区| 亚洲欧美日韩精品久久久久| 日韩欧美成人一区二区| 在线亚洲免费视频| 国产大片一区二区| 日韩vs国产vs欧美| 亚洲精品国产第一综合99久久| 欧美成人福利视频| 91丨porny丨在线| 亚洲国产综合色| 91在线一区二区三区| 久久精品国产澳门| 一区二区三区精密机械公司| 久久午夜色播影院免费高清| 欧美视频一区二区三区| 99久久婷婷国产精品综合| 国产精品一区二区三区四区| 日本不卡一区二区三区 | 亚洲免费电影在线| 久久精品欧美日韩精品 | 中文字幕第一区综合| 欧美一二三区精品| 欧美日韩午夜精品| 欧美性受xxxx| 欧美亚洲高清一区二区三区不卡| av网站一区二区三区| 成人网在线播放| 国产精品亚洲一区二区三区在线 | 久久久久久久国产精品影院| 欧美日韩在线直播| 色婷婷综合久久久中文字幕| 成人综合在线观看| 国产.精品.日韩.另类.中文.在线.播放 | 亚洲成人tv网| 亚洲永久免费视频| 亚洲精品大片www| 亚洲三级电影网站| 亚洲欧美精品午睡沙发| 亚洲视频一区二区在线| 日本欧美大码aⅴ在线播放| 亚欧色一区w666天堂| 午夜视频一区二区| 午夜精品福利久久久| 日韩成人一区二区| 麻豆精品视频在线观看免费| 久久99在线观看| 国产经典欧美精品| 成人午夜激情在线| 婷婷六月综合网| 日本韩国欧美国产| 狠狠色丁香久久婷婷综合丁香| 久久精品国内一区二区三区| 美女一区二区三区| 国产九色精品成人porny| 成人一区在线观看| 色一区在线观看| 欧美乱妇23p| 日韩欧美电影一区| 欧美韩国一区二区| 一区二区三区加勒比av| 石原莉奈在线亚洲二区| 韩国精品在线观看| 不卡视频在线观看| 日本黄色一区二区| 日韩免费视频线观看| 国产农村妇女精品| 亚洲中国最大av网站| 免费国产亚洲视频| 成人国产精品免费网站| 欧美色精品在线视频| 精品久久久久久久人人人人传媒 | 91色在线porny| 正在播放一区二区| 国产拍欧美日韩视频二区| 亚洲女性喷水在线观看一区| 天天操天天干天天综合网| 国产美女主播视频一区| 色婷婷激情综合| 欧美不卡一区二区| 一区二区三区在线免费播放| 老色鬼精品视频在线观看播放| 成人国产精品免费观看| 51精品视频一区二区三区| 欧美激情一区二区| 蜜臀99久久精品久久久久久软件| 成av人片一区二区| 精品美女被调教视频大全网站| 亚洲色图色小说| 久久精品99国产精品日本| 91麻豆产精品久久久久久 | 欧美系列在线观看| 中文一区在线播放| 美腿丝袜在线亚洲一区| 欧美在线观看禁18| 国产欧美精品国产国产专区| 五月婷婷另类国产| 色94色欧美sute亚洲13| 国产色一区二区| 久久99久国产精品黄毛片色诱| 91官网在线观看| 综合中文字幕亚洲| 色菇凉天天综合网| 亚洲欧洲日韩综合一区二区| 精品一区二区三区免费| 91精品国产综合久久福利软件| 一区二区三区四区在线播放 | 欧美精品一区二区三| 丝袜美腿亚洲色图| 欧美日韩国产一区二区三区地区| 国产精品欧美一区二区三区| 狠狠色狠狠色综合系列| 欧美一个色资源| 日韩国产一区二| 欧美肥胖老妇做爰| 午夜成人免费视频| 欧美性一区二区| 午夜一区二区三区视频| 91福利资源站| 亚洲成人精品影院| 欧美美女视频在线观看| 日韩国产欧美在线视频| 91精品久久久久久久久99蜜臂| 亚洲一区免费视频|