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

Ïê½âAJAXºËÐÄÖеÄXMLHttpRequest¶ÔÏó

 XMLHttpRequest ¶ÔÏóÊÇAJAX¹¦ÄܵĺËÐÄ£¬Òª¿ª·¢AJAX³ÌÐò±ØÐë´ÓÁ˽âXMLHttpRequest ¶ÔÏó¿ªÊ¼¡£
    Á˽âXMLHttpRequest ¶ÔÏó¾ÍÏÈ´Ó´´½¨XMLHttpRequest ¶ÔÏó¿ªÊ¼£¬ÔÚ²»Í¬µÄä¯ÀÀÆ÷Öд´½¨XMLHttpRequest ¶ÔÏóʹÓò»Í¬µÄ·½·¨£º
    ÏÈ¿´¿´IE´´½¨XMLHttpRequest ¶ÔÏóµÄ·½·¨£¨·½·¨1£©£º
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
//ʹÓýÏа汾µÄ IE ´´½¨ IE ¼æÈݵĶÔÏó£¨Msxml2.XMLHTTP£©
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
//ʹÓýÏÀÏ°æ±¾µÄ IE ´´½¨ IE ¼æÈݵĶԣ¨Microsoft.XMLHTTP£©
    ¶ø Mozilla¡¢Opera¡¢Safari ºÍ´ó²¿·Ö·ÇIEµÄä¯ÀÀÆ÷¶¼Ê¹ÓÃÏÂÃæÕâÖÖ·½·¨£¨·½·¨2£©´´½¨XMLHttpRequest ¶ÔÏó£º
var xmlhttp = new XMLHttpRequest();
    ʵ¼ÊÉÏInternet Explorer ʹÓÃÁËÒ»¸öÃûΪ XMLHttp µÄ¶ÔÏ󣬶ø²»ÊÇ XMLHttpRequest ¶ÔÏ󣬶ø Mozilla¡¢Opera¡¢Safari ºÍ ´ó²¿·Ö·Ç Microsoft ä¯ÀÀÆ÷¶¼Ê¹ÓõÄÊǺóÕߣ¨ÏÂÎÄͳ³Æ XMLHttpRequest ¶ÔÏ󣩡£IE7¿ªÊ¼Ò²¿ªÊ¼Ê¹ÓÃXMLHttpRequest ¶ÔÏóÁË¡£
    ÔÚ´´½¨ XMLHttpRequest ¶ÔÏóµÄʱºòÈç¹û²»Í¬µÄä¯ÀÀÆ÷ʹÓÃÁ˲»ÕýÈ·µÄ·½·¨ä¯ÀÀÆ÷¶¼½«»á±¨´í£¬²¢ÇÒÎÞ·¨Ê¹ÓøöÔÏó¡£ËùÒÔÎÒÃÇÐèÒªÒ»ÖÖ¿ÉÒÔ¼æÈݲ»Í¬ä¯ÀÀÆ÷µÄ´´½¨XMLHttpRequest ¶ÔÏóµÄ·½·¨£º
    ´´½¨¼æÈݶàä¯ÀÀÆ÷µÄ XMLHttpRequest ¶ÔÏó·½·¨
 
var xmlhttp = false; //´´½¨Ò»¸öбäÁ¿ request ²¢¸³Öµ false¡£Ê¹Óà false ×÷ΪÅжÏÌõ¼þ£¬Ëü±íʾ»¹Ã»Óд´½¨ XMLHttpRequest ¶ÔÏó¡£
function CreateXMLHttp(){
try{
xmlhttp = new XMLHttpRequest();  //³¢ÊÔ´´½¨ XMLHttpRequest ¶ÔÏ󣬳ý IE ÍâµÄä¯ÀÀÆ÷¶¼Ö§³ÖÕâ¸ö·½·¨¡£
}
catch (e){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");  //ʹÓýÏа汾µÄ IE ´´½¨ IE ¼æÈݵĶÔÏó£¨Msxml2.XMLHTTP£©
}
catch (e){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //ʹÓýÏÀÏ°æ±¾µÄ IE ´´½¨ IE ¼æÈݵĶÔÏó£¨Microsoft.XMLHTTP£©¡£
}
catch (failed){
xmlhttp = false;  //Èç¹ûʧ°ÜÔò±£Ö¤ request µÄÖµÈÔȻΪ false¡£
}
}
}
return xmlhttp;
}
ÅжÏÊÇ·ñ´´½¨³É¹¦¾ÍºÜ¼òµ¥ÁË
if (!xmlhttp){
//´´½¨XMLHttpRequest ¶ÔÏóʧ°Ü!
}
else{
//´´½¨³É¹¦!
}
 
    ´´½¨ºÃÁËXMLHttpRequest ¶ÔÏóÎÒÃ


Ïà¹ØÎĵµ£º

ajax֪ʶµã

1.XMLHttpRequest¶ÔÏó
  open("method","URL""[,asyncFlag[,"userName"[, "password"]]])
    ½¨Á¢¶Ô·þÎñÆ÷µÄ·ÃÎÊ¡£ÆäÖÐmethod²ÎÊý¿ÉÒÔʹÓÃGET¡¢POST¼°PUT£¬URL²ÎÊý¼È¿ÉÒÔʹÓþø¶ÔµØÖ·£¬Ò²¿ÉÒÔʹÓÃÏà¶ÔµØÖ·£¬´ËÍ⻹°üÀ¨Ó뽨Á¢Á¬½ÓÏà¹ØµÄÈý¸ö²ÎÊý
&nbs ......

Google Ajax Search APIµÄ»ù±¾Ê¹Ó÷½·¨

Google Search API
²Î¿¼Êé¼®£ºGoogle API´óÈ«—±à³Ì?¿ª·¢?ʵÀý
Êé¼®¶Ô¼¸Ê®ÖÖGoogle³£ÓÃAPI½øÐÐÁËÊáÀíºÍ½éÉÜ£¬¸¨ÒÔÐÐÖ®ÓÐЧµÄ´úÂëʵÀý
http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/
1£©Google Site Search
GoogleÕ¾µãÄÚǶËÑË÷µÄʹÓ÷½·¨
<%@ page language="java" contentType="text/ht ......

ASP.NET AJAXÈëÃÅϵÁÐ

ASP.NET AJAXÈëÃÅϵÁн«»áд¹ØÓÚASP.NET AJAXһЩ¿Ø¼þµÄʹÓ÷½·¨ÒÔ¼°»ù´¡ÖªÊ¶£¬ÆäÖв¿·ÖÎÄÕÂΪԭ´´£¬Ò²ÓÐһЩÎÄÕÂÊÇÖ±½Ó·­Òë×Ô¹Ù·½Îĵµ£¬±¾²¿·ÖÄÚÈݻ᲻¶Ï¸üС£
 
Ŀ¼
ASP.NET AJAXÈëÃÅϵÁУ¨1£©£º¸ÅÊö
    µ¼¶Á£º×÷Ϊ±¾ÏµÁÐÎÄÕµĿªÆª£¬¼òµ¥½éÉÜÒ»ÏÂASP.NET AJAXµÄ¸Å¿ö¼°¸÷¸ö×é³É²¿·Ö¡£
  ......

AjaxÊ×ÂÖʵ¼ù¾­Àú

      ÕâÀïҪ˵µÄûÓдóµÀÀí£¬Ã»ÓÐÔ­Àí£¬Ã»ÓиßÉîµÄ¼¼Êõ£¬Ã»ÓÐYY£¬Ö»ÊÇ×Ô¼ºµÄÒ»´Î¾­Àú£¬ÈռǶøÒÑ¡£ÒÔ·ÀÒÔºóÍü¼ÇÁË£¬ÏÖÔÚдÏÂÀ´¿ÉÒÔ×÷Ϊ²Î¿¼¡£
     
ʱ¼ä£º5ÔÂÑ×ÈȵÄÒ»Ìì
µØµã£º3Â¥
ÈËÎÎÒ£¬µçÄÔ
½á¹û£ºÄ£ÄâÒ»¸öÍøÕ¾µÄ¾Ö²¿Ë¢Ð¹¦ÄÜ
ÉùÃ÷£ºÐÂÊÖ£¬¶ÔAjaxµÚÒ»´ÎÊ¹Ó ......

AjaxµÄÔ­ÀíºÍÓ¦ÓÃ

¹ØÓÚajaxµÄÃû×Ö
    ajax µÄÈ«³ÆÊÇAsynchronous JavaScript and XML£¬ÆäÖУ¬Asynchronous ÊÇÒì²½µÄÒâ˼£¬ËüÓбðÓÚ´«Í³web¿ª·¢ÖвÉÓõÄͬ²½µÄ·½Ê½¡£
¹ØÓÚͬ²½ºÍÒì²½
 
Òì²½´«ÊäÊÇÃæÏò×Ö·ûµÄ´«Ê䣬ËüµÄµ¥Î»ÊÇ×Ö·û£»¶øͬ²½´«ÊäÊÇÃæÏò±ÈÌصĴ«Ê䣬ËüµÄµ¥Î»ÊÇè壬Ëü´«ÊäµÄʱºòÒªÇó½ÓÊÜ·½ºÍ·¢ËÍ·½µÄʱÖÓÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ