ÈçºÎʹÓÃajax¿ª·¢webÓ¦ÓóÌÐò£¨1£©
1. http://hi.baidu.com/lshun/blog/item/2378b4c36fdef455b219a85b.html
CODE:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<pets>
<è />
<¹· />
<Óã />
</pets>
</data>
¡¡¡¡È»ºóÎÒÃÇÄܹ»±éÀúÔªËØ<pets>ÀïµÄ½Úµã¡£Õâ¸öprocessXMLº¯Êý¿´ÆðÀ´¾ÍÏñÕâÑù£º
[Copy to clipboard]
CODE:
function processXML(obj){
var dataArray = obj.getElementsByTagName('pets')[0].childNodes;
var dataArrayLen = dataArray.length;
var insertData = '<table style="width:150px; border: solid 1px #000"><tr><th>'
+ 'Pets</th></tr>';
for (var i=0; i<dataArrayLen; i++){
if(dataArray[i].tagName){
insertData += '<tr><td>' + dataArray[i].tagName + '</td></tr>';
}
}
insertData += '</table>';
document.getElementById ('dataArea').innerHTML = insertData;
}
£¨Sheneyan×¢£ºÐ޸ĺóµÄʾÀý¼û£ºhttp://sheneyan.com/html/article/ajax/example_2_1.html
£¬XMLÎļþ¼û£ºhttp://sheneyan.com/html/article/ajax/data_2_1.xml
£©
¡¡¡¡ÕâÀïËù×÷µÄÐ޸ľÍÊÇÎÒÃÇÖ¸ÏòÁË<pets>×éÔªËØ£¨Õâ¸ö“[0]”ÒâζÕâÊǵÚÒ»¸ö£¬¼´Ê¹Ëü¾ÍÊÇΨһµÄÄÇÒ»¸ö£©ÒÔ¼°ËüµÄ×ӽڵ㣨Ԫ
ËØ<è />£¬<¹· />£¬<Óã
/>£©¡£ÒòΪÎı¾ÔªËØ·Ö¸îÁËÕ⼸¸öÔªËØ£¨¿Õ¸ñ±»ÈÏΪÊÇÒ»¸ö½Úµã£©£¬ÎÒÃÇÐèҪȷ¶¨Ö»ÓÐÄÇЩÓбêÇ©ÃûµÄ½Úµã£¨àÅ£¬Ò²¾ÍÊÇÖ»ÓбêÇ©£©Í¨¹ý¡£È»ºóÎÒÃÇÊä³öÿ
Ò»¸ö±êÇ©µÄÃû×Ö¡£ÒòΪÿһ¸ö±êÇ©ÃûÊÇÒ»¸ö³èÎÎÒÃDz»ÐèҪȡµÃÿһ¸ö½ÚµãµÄÊý¾Ý£½ÚµãÃû±¾É
Ïà¹ØÎĵµ£º
Ò»¡¢ н¨Ò»¸öAjax_StartµÄÍøÕ¾
¶þ¡¢ ÔÚÍøÕ¾ÖÐÌí¼ÓÒ»¸öweb·þÎñ£¨ws_start.asmx£©
ÔÚvs2008ÖУ¬Ìí¼ÓÒ»¸öweb·þÎñÉú³ÉÁËÁ½¸öÎļþ£¬Ò»¸öÊÇasmxÎļþ£¬Ò»¸öÊÇÔÚApp_codeÀïµÄcsÎļþ£»ÎÒ¾õµÃÕâÑù²¢²»ºÃ£¬Ö ......
AJAX(Asynchronous JavaScript and XML):»ùÓÚXMLµÄÒì²½JavaScript£¬¼ò³ÆAJAX,ÊǶàÖÖ¼¼ÊõµÄ×ÛºÏ.
Ò»ÖÖ¿Í»§¶Ë¼¼Êõ ,Ϊ»¥ÁªÍøÓû§Ìṩ¸ü¼ÓÓÑÉƵĽ»»¥½çÃæ,¸ü¼ÓÁ÷³©µÄÓû§ÌåÑé.Ò²¾ÍÊÇËùνµÄÅÖ¿Í»§¶Ë,ʹÍøÒ³µÄЧ¹ûÄܹ»Ïñ°²×°ÔÚ¼ÆËã»úÉϵÄÓ¦ÓÃÈí¼þ»òϵͳһÑùÓѺûªÀö.
ËüÓÉÈçÏÂËÄÖÖ¼¼Êõ×é³É:CSS + DOM + XMLHttpRe ......
ModalPopup ¿Ø¼þÔÊÐí½« Web Ò³ÃæÖеÄÒ»¸ö²¿·ÖÒÔÊÓ´°³ÌÐòÖеēģʽ”ÐÎʽÏÔ³öÀ´£¬Æðµ½ÌáʾÓû§²Ù×÷ºÍ±ÜÃâ¶ÔÒ³ÃæÖÐÆäËü²¿·ÖµÄÎó²Ù×÷µÄ×÷Óá£
“ģʽ”µÄÄÚÈÝ¿ÉÒÔÊÇÈÎÒâÒ»¸ö Control ÀàµÄÅÉÉú¿Ø¼þ£¬¿ª·¢ÈËÔ±¿ÉÒÔÖ¸¶¨µ±Ëü±»“ģʽ”ÏÔʾµÄʱºòµÄ±³¾°µÄÏÔʾÑùʽ¡£
µ±Ò»¸öÒ³Ãæ¿Ø¼þ±»&ld ......
web2.0ºá¿Õ³öÊÀ£¬ajaxÊ×µ±Æä³å£¬½ñÌì×öwebµÄÈç¹ûÔÙ²»Ñ§µãajaxµÄ»°£¬¾ÍÏÔµÄÂäÎéÁË£¬¶øѧajaxµÄÓõĻ·¾³Èç¹ûÊÇasp.net£¬ÄÇajax.netÄã¾Í²»µÃ²»Ñ§ÁË¡£Ê×ÏȾÍÊÇ»·¾³µÄÅäÖã¬ÈçÏÂ
vs2005+sql2005+Winxp sp2+ie6.0+Office2003
¹¤¾ßÏÂÔØ
1.ASPAJAXExtSetup.msi
http://download.microsoft.com/download/5/4/6/5462 ......
¿´¿´ Ajax ºÍ DOM ½Å±¾±à³Ì¾¿¾¹Óжà¼òµ¥
ÎĵµÑ¡Ïî
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º Öм¶
Jesse Skinner, Web ¿ª·¢ÈËÔ±, Freelance
2007 Äê 5 ÔÂ 16 ÈÕ
jQuery ÊÇÒ»¸öJavaScript ¿â£¬ËüÓÐÖúÓÚ¼ò»¯ JavaScript™ ÒÔ¼° Asynchronous JavaScript + XML (Ajax) ±à³Ì¡£ÓëÀàËÆµÄ JavaScript ¿â²»Í¬£¬jQuery ¾ßÓжÀ ......