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

AJAXʵÏÖ¶þ¼¶¼¶Áª²Ëµ¥

 AJAXʵÏÖ¶þ¼¶¼¶Áª²Ëµ¥£¬ÓÃPHPÍê³É£¬¿Í»§¶Ë´úÂ룺
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
</head>
<script type="text/javascript">
var xmlHttp;
var a =new Array();
function createXMLHttpRequest(){
   if(window.ActiveXObject){
     xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
   else if(window.XMLHttpRequest){
      xmlHttp=new XMLHttpRequest();
   }
}
function send_request(){
 createXMLHttpRequest();
 var year = document.getElementById("year");
 
 var url = "check_2.php?page="+escape(year.value);
 xmlHttp.open("GET",url,true);
 xmlHttp.onreadystatechange = checkit; 
 xmlHttp.send(null);
}
function checkit(){
 if(xmlHttp.readystate == 4){
  if(xmlHttp.status == 200){
   showChild();   
  }
 }
}
function showChild(){
   var xmlDoc=xmlHttp.responseXML;
   var content=xmlDoc.getElementsByTagName("city");
   for(var i=0;i<content.length;i++){
      var y=content[i];
      a[i]=y.childNodes[0].data;
   }
  show1();
}
function show1(){
     var obj=document.getElementById("name");
     var number=obj.length;
     for(var j=obj.length-1;j>=0;j--){
               obj.removeChild(obj.childNodes.item(j));
          } 
         for(var i=0;i<a.l


Ïà¹ØÎĵµ£º

FlexÓëAJAX

        FlexÓÐרÓеıàÒë½âÎöÆ÷£¬ÓÉÓÚAJAXÉæ¼°µ½JAVASCRIPT¼¼Êõ£¬ËùÒÔ»¹ÊÇÃæ¶Ô¿çä¯ÀÀÆ÷µÄ·³ÈÅ¡£ajaxÔÚÒ³ÃæÉÏ´¦ÀíһЩ¼òµ¥Âß¼­Ê±£¬ÐèÒªÓÃJAVASCRIPTÀ´´¦Àí£¬Äã°²ÐĵÄÔÚÄãµÄä¯ÀÀÆ÷ÉϱàÒë½âÎöͨ¹ýÁË£¬ÄãÒÔΪ´ó¹¦¸ã³ÉÁË£¬¿ÉÊÇÊâ²»Öª£¬½Óõà¶øÀ´µÄÊÇ¿Í»§µÄͶËߣ¬ÒòΪÄãÔ­ÒÔΪ³É¹¦µÄÒ³ÃæÔÚËûà ......

FlexÓëAjax½»»¥

FlexÓëAjax½»»¥
ÈýÏ¿´óѧÍÁľˮµçѧԺФÔóÔÆ
FlexÓëAjax¶¼ÊÇ¿ª·¢AIR·Ç³£ºÃµÄ¼¼Êõ£¬ËüÃǸ÷ÓÐÓÅȱµã¡£Flex¸ü¼òµ¥£¬Ð§¹û¸ü¼Ó¿á£¡µ«ÊÇÔÚ¹¦ÄÜ¿ª·¢µÈ·½Ãæ²»¼°Ajax³ÉÊì¡£×îÀíÏëµÄ¾ÍÊÇÈ«²¿ÓÃFlexÀ´¿ª·¢ÊµÏÖ£¬µ«ÕâÖ»ÊÇÒ»ÖÖÀíÏë״̬£¬ºÜ¶àʱºòÎÒÃÇ»¹ÊÇÒªÓõ½Ajax¡£ÎÒÃǾ­³£ÐèÒª½«Ç¶Èëµ½ Ajax Ó¦ÓóÌÐòÖеĻùÓÚ Flash µÄ×ÊÔ´¼¯³ÉÔÚÒ» ......

XMLHttpRequest½øÐÐajaxͨѶʱÖÐÎÄÂÒÂëÎÊÌâ½â¾ö

 Ê¹ÓÃjsµ÷ÓÃXMLHttpRequest½øÐÐajaxͨѶʱ£¬Èç¹û·þÎñÆ÷¶ËÒª´«µÝµÄÊý¾ÝÖÐÓÐÖÐÎÄʱ£¬ÎÒÃǵĽâ¾ö°ì·¨¡£
1¡¢Ò³Ã棺
     Ò»°ãÔÚÒ³ÃæÎÒÃÇΪÁË·½±ã£¬×îºÃʹÓÃUTF-8±àÂë¡£
2¡¢·þÎñÆ÷¶Ë£º
     ÎÒÃÇÔÚ·þÎñÆ÷¶ËµÄ´úÂëÀïÃæ¶Ôresponse¶ÔÏóµÄÉèÖÃÈçÏ£º
//ÉèÖÃresponseµÄ±àÂë
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ