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

2009 12 28 ´«ÖDz¥¿Í—AJAX£¨×ÛºÏÁ·Ï°£©


½ñÌìÔçÉÏÀÏÙ¡½«×òÌìµÄÁ·Ï°½øÐÐÁ˽²½â¡£½ñÌìµÄÖ÷ÒªÄÚÈÝÊǶÔAJAXµÄ»ã×ÜÁ·Ï°£¬×öÁËÁ½¸öÁ·Ï°¶¼ÊDZȽϳ£Ê¹ÓõÄÓ¦Óá£
 
Ò»¡¢              ÏÂÀ­¿òµÄ¼¶Áª£¬±ÈÈ磬ѡÔñÏÂÀ­¿òÒ»ÖеÄÄÚÈÝ£¨³ÇÊÐÃû³Æ£©£¬ÔÚÏÂÀ­¿ò¶þÖÐÏÔʾÔÚÕâ¸ö³ÇÊÐÖеIJ¿ÃÅ¡£ÔÚÏÂÀ­¿ò¶þÖÐÑ¡Ôñ²¿ÃÅÃû³Æ£¬ÔÚÏÂÀ­¿òÈýÖÐÏÔʾ²¿ÃŵÄÈËÔ±¡£ÔÚÏÂÀ­¿òÖÐÑ¡ÔñÈËÔ±Ãû³Æ£¬ÔÚ±í¸ñÖÐÏÔʾÈËÔ±¾ßÌåÐÅÏ¢¡£Õâ¾ÍÊǼ¶Áª£¬Êý¾Ý´æ´¢ÔÚÊý¾Ý¿âÖС£Ê¹ÓÃAJAX¼¼ÊõÖ»¸üе±Ç°Ò³Ã沿·ÖÄÚÈÝ£¬ÎÞÐëË¢ÐÂÕû¸öÒ³Ãæ¡£
¶þ¡¢              Óû§×¢²á¹¦ÄÜ£¬ÌáʾÓû§ÃûÊÇ·ñºÏ·¨µÈ¡£Í¬ÑùÒ²ÊÇʹÓÃAJAX¼¼Êõ¡£
 
ÕâÁ½¸öÁ·Ï°´ó¼Ò¶¼±È½Ï³£¼û£¬WEBÒѾ­ÕâôÁ÷ÐÐÁË£¡Ok£¬½ÓÏÂÀ´ÈÃÎÒÃÇ¿´¿´¾ßÌåÁ÷³Ì¡£ÎÒ°ÑÕâÁ½¸öͼ»­Ò»Ï¡££¨Ö»ÎªAJAXÓëStruts1µÄÅäºÏÁ·Ï°£©
 
Á·Ï°Ò»£ºÏÂÀ­¿òµÄ¼¶Áª
 
         ÒÔÉÏûÓÐʹÓÃservice²ã£¬ÄÇÑù×ö»áʹ³ÌÐò¸üÓÅÑÅ¡£µ«¶ÔÓÚÕâ¸öСÁ·Ï°Ã»ÓбØÒª£¬ÉõÖÁ±àд¶à¸öDAOҲû±ØÒª£¬ÀÏÙ¡Ö»±àдÁËÒ»¸öDAO¡£ÔÚÕâÀïÎÒÃÇÂé·³Ò»ÏÂ×Ô¼º°É£¡
 
         ÕâÀïÓëÒ³ÃæµÄ½»»¥Êý¾ÝÊÇJSON£¬JSONÓÃÔÚ±íµ¥ÉÏÊ®·Ö·½±ã¡£
 
ÁгöÒ»²¿·Ö³ÌÐòµÄ´úÂ룬ÔÚÒ³Ãæ¼ÓÔØʱ¡£ÐèÒª»ñÈ¡³ÇÊÐÁÐ±í£¬²¢½«³ÇÊÐÌí¼Óµ½ÏÂÀ­Áбí¿òÖУ¨¶ÔÓ¦µÄÏîÄ¿valueÊdzÇÊеÄId£©¡££º
        
var url="${pageContext.request.contextPath}/cascading.do?method=getAllCities";
    var args = {"time":new Date()};
    $("#city > option:not(:first)").remove();  
    // ÑÏÖØ×¢ÒâJSONÊý¾ÝµÄ¸ñʽ£¬³öÒ»µã²î´í¶¼²»¿ÉÒÔ£¬±ÈÈçÉÙÁËÒ»¸ö“:”¡£
    $.getJSON(url, args, function(data){
       if(data != null){
            //½«ËùÓеijÇÊÐÏÔʾµ½ÏÂÀ­Áбí¿òÖÐ
           for(var i=0; i <&nbs


Ïà¹ØÎĵµ£º

ASP .NET ÖÐ AJAX µÄ TabContainer µÄ CSS Ñùʽ±àд

ÔÚ ASP .NET µÄ AJAX ¿Ø¼þÖÐ TabContainer µÄ CSS ÑùʽµÄ±àд¾ßÓÐÒ»¶¨µÄ¸ñʽ¹æ·¶¼°ÃüÃû¹æÔò£¬ÈçÏÂͼ£º
¾ßÌåµÄ CSS ÑùʽµÄ±àдΪ£º
.ajax_tab_menu .ajax__tab_header /*ÕûÌå°´Å¥µ×Ñùʽ*/
{
font-family:ËÎÌå;
height:29px;
font-size:12px;
background:#181c1f repeat-x bottom;
}
.ajax_tab_menu .ajax__tab ......

ajaxÇëÇójspÎļþµÄÎÊÌâ

       Ò»¸öajaxÇëÇóÒ»¸öjspÎļþ£¬²Ù×÷³É¹¦,jspÎļþout.println("1");µ«ÊÇÿ´Î³É¹¦ºóxmlHttp.responseText=='1'×ÜÊÇΪfalse£¬
ÓÃencodeURIComponent¿´xmlHttp.responseText£¬·¢ÏÖ×îºó¶àÁË%0A%0D£¬°Ù¶ÈһϠÓÃÀ´ÊÇ»»ÐУ¬
jspÎļþÖеÄout.println……°ÑlnÈ¥µôÔÙ´Î±È½Ï ³É¹¦ = =¡ ......

Google AJAX Search API ÃÜÔ¿£¡

¸ÐлÄú×¢²áʹÓà Google AJAX Search API ÃÜÔ¿£¡
ÄúµÄÃÜÔ¿ÊÇ£º
ABQIAAAA2XOmDwsdSefVWtliFM7oAhRgUnSrtx2R2fBqn5WGl7l070PqvBRbr7s7L72cRNSIH96KndKP3sbASw
¸ÃÃÜÔ¿¿ÉÓÃÓÚ¸ÃĿ¼ÖеÄËùÓÐÍøÖ·£º
http://www.rdladmin.test
ÒÔÏÂÊÇ°ïÖúÄúÈëÃŵÄʵÀýÍøÒ³£º
<!DOCTYPE html PUBLIC "-//W3C//DTD X ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ