Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ajax Òì²½ÇëÇó

//Óû§ÃûУÑéµÄ·½·¨
//Õâ¸ö·½·¨½«Ê¹ÓÃXMLHTTPRequest¶ÔÏóÀ´½øÐÐAJAXµÄÒì²½Êý¾Ý½»»¥
var xmlhttp;
function verify() {
    //0¡£Ê¹ÓÃdomµÄ·½Ê½»ñÈ¡Îı¾¿òÖеÄÖµ
    //document.getElementById("userName")ÊÇdomÖлñÈ¡ÔªËؽڵãµÄÒ»ÖÖ·½·¨£¬Ò»¸öÔªËؽڵã¶ÔÓ¦HTMLÒ³ÃæÖеÄÒ»¸ö±êÇ©£¬Èç¹û<input>
    //¡£value¿ÉÒÔ»ñÈ¡Ò»¸öÔªËؽڵãµÄvalueÊôÐÔÖµ
    var userName = document.getElementById("userName").value;
    //1.´´½¨XMLHttpRequest¶ÔÏó
    //ÕâÊÇXMLHttpReuquest¶ÔÏóÎÞ²¿Ê¹ÓÃÖÐ×ÔÓµÄÒ»²½
    //ÐèÒªÕë¶ÔIEºÍÆäËûÀàÐ͵Ää¯ÀÀÆ÷½¨Á¢Õâ¸ö¶ÔÏóµÄ²»Í¬·½Ê½Ð´²»Í¬µÄ´úÂë
    if (window.XMLHttpRequest) {
        //Õë¶ÔFireFox£¬Mozillar£¬Opera£¬Safari£¬IE7£¬IE8
        xmlhttp = new XMLHttpRequest();
        //Õë¶ÔijЩÌض¨°æ±¾µÄmozillarä¯ÀÀÆ÷µÄBUG½øÐÐÐÞÕý
        if (xmlhttp.overrideMimeType) {
            xmlhttp.overrideMimeType("text/xml");
        }
    } else if (window.ActiveXObject) {
         //Õë¶ÔIE6£¬IE5.5£¬IE5
        //Á½¸ö¿ÉÒÔÓÃÓÚ´´½¨XMLHTTPRequest¶ÔÏóµÄ¿Ø¼þÃû³Æ£¬±£´æÔÚÒ»¸öjsµÄÊý×éÖÐ
        //ÅÅÔÚÇ°ÃæµÄ°æ±¾½ÏÐÂ
        var activexName = ["MSXML2.XMLHTTP","Microsoft.XMLHTTP"];
        for (var i = 0; i < activexName.length; i++) {
            try{
                //È¡³öÒ»¸ö¿Ø¼þÃû½øÐд´½¨£¬Èç¹û´´½¨³É¹¦¾ÍÖÕֹѭ»·
       


Ïà¹ØÎĵµ£º

Ajax¿çÓò·ÃÎÊ


AjaxÖ±½Ó¿çÓò·ÃÎÊ£¬»á³öÏÖûÓÐȨÏ޵ĴíÎó£¬Ò»¸ö±È½Ï¼òµ¥¿ÉÐеĽâ¾ö·½°¸ÈçÏ£º
×öÒ»¸ö ajaxÇëÇóµÄ ´úÀíservlet »òÕßjsp£¬
ajaxÇëÇóservlet»òjsp´úÀí£¬ÓÉservlet»òjsp´úÀíÈ¥ÇëÇóajaxÒª·ÃÎʵÄaction£¬È»ºóÔÙ½«actionµÄÏìÓ¦ÐÅÏ¢·µ»Ø¸øajax¼´¿É£¬
servlet»òjsp³äµ±ÖнéÈ˵ĽÇÉ«
servlet »ò jsp ´úÀíµÄ  ºËÐÄ´úÂëÈçÏ£ ......

jquery php ajax json

just get a json
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<mce:script src="jquery-1.3.2.min.js" mce_src="jq ......

AJAX¿Ø¼þ2

AJAX¿Ø¼þ2
17. MutuallyExclusiveCheckBox
¡¾¹¦ÄܸÅÊö¡¿
»¥³â¸´Ñ¡¿ò¾ÍÏñRadioButtonÒ»Ñù£¬Ó¦Óõij¡¾°ÊÇ£º“a number of choices are available but only one can be chosen”
¡¾Ï¸½Ú¡¿
(1)KeyÊôÐÔÓÃÀ´·Ö×é¾ÍÏñRdiolistGroupÒ»Ñù
(2)argetControlIDÓÃÀ´°ó¶¨ÒÑÓеÄCheckBox
¡¾´úÂëʾÒâ¡¿
<ajaxToolkit:M ......

Google AJAX Search API ÃÜÔ¿£¡

¸ÐлÄú×¢²áʹÓà Google AJAX Search API ÃÜÔ¿£¡
ÄúµÄÃÜÔ¿ÊÇ£º
ABQIAAAA2XOmDwsdSefVWtliFM7oAhRgUnSrtx2R2fBqn5WGl7l070PqvBRbr7s7L72cRNSIH96KndKP3sbASw
¸ÃÃÜÔ¿¿ÉÓÃÓÚ¸ÃĿ¼ÖеÄËùÓÐÍøÖ·£º
http://www.rdladmin.test
ÒÔÏÂÊÇ°ïÖúÄúÈëÃŵÄʵÀýÍøÒ³£º
<!DOCTYPE html PUBLIC "-//W3C//DTD X ......

ajax¾Ö²¿Ìá½»

ʵÏÖ¹¦ÄÜ£ºµ¥»÷°´Å¥£¬½«´ÓÊý¾Ý¿â»ñÈ¡µÄÊý¾Ý·µ»Ø¸øÎı¾¿ò1(Ë¢ÐÂÎı¾¿ò1)£¬¶øÎı¾¿ò2²»Ë¢ÐÂ
Ò³Ãæ1£ºtest.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ