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

AJAXʵʱ¶ÁÈ¡ÊäÈëÎı¾

 ¿Í»§¶ËString.php,·þÎñÆ÷¶ËString_check.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 language="javascript">
var xmlHttp;
function createXMLHttpRequest(){
 if(window.ActiveXObject){
  xmlHttp = new ActiveXObject("microsoft.XMLHTTP");
 }
 else if(window.XMLHttpRequest){
  xmlHttp = new XMLHttpRequest();
 }
}
function sendRequest(){
 
 createXMLHttpRequest();
 
 var name = document.getElementById("name").value;
 url = "String_check.php?page="+name;
 xmlHttp.onreadystatechange = callback;
 xmlHttp.open('GET',url,true); 
 xmlHttp.send(null);
}
function callback(){
 if(xmlHttp.readyState == 4){
  if(xmlHttp.status == 200){
   document.getElementById("show").innerHTML = "ÄúÊäÈëµÄ×Ö·û´®Îª£º"+ xmlHttp.responseText;
   
  }
 }
}
</script>
<body>
<p>AJAX test;</p>
<p><br/>
  <input type="text" id="name" onkeyup="sendRequest();" />
  <br/>
  <span id="show"></span>
</p>
</body>
</html>
·þÎñÆ÷¶Ë´úÂ룺
<?php
header('Content-type: text/html;charset=GB2312');
$ename = $_GET["page"];
if ($ename == "") {
 $ename = "ÇëÊäÈ룺";
}
echo ($ename);
exit(0);
?>


Ïà¹ØÎĵµ£º

AJAXС½á

Ô­³ö´¦:http://blog.163.com/zwx_gis/blog/static/32434435200971072634757/
Web±à³ÌÏà¹Ø   2009-08-10 19:26   ÔĶÁ15   ÆÀÂÛ0  
 
Ajax (Asynchronous JavaScript and XML) ÊǶàÖÖ¼¼ÊõµÄ¼¯ºÏ£¬°üÀ¨JavaScript¡¢XHTML¡¢CSS¡¢DOM¡¢XML¡¢XSTL¡¢XMLHttpRequestµÈ£¬ÆäÖÐXHTM ......

FlexÓëAJAX

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

asp.net ajax ÀàÐÍϵͳdemo

 <mce:script language=javascript><!--

//×¢²áÃüÃû¿Õ¼ä
Type.registerNamespace("Demo");
Demo.Message=function(content,publishTime)
{
this._content = content;
this._publishTime = publishTime;
}

Dem ......

ʹÓà jQuery ¼ò»¯ Ajax ¿ª·¢

 
¿´¿´ Ajax ºÍ DOM ½Å±¾±à³Ì¾¿¾¹Óжà¼òµ¥
ÎĵµÑ¡Ïî

½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º Öм¶
Jesse Skinner, Web ¿ª·¢ÈËÔ±, Freelance
2007 Äê 5 ÔÂ 16 ÈÕ
jQuery ÊÇÒ»¸öJavaScript ¿â£¬ËüÓÐÖúÓÚ¼ò»¯ JavaScript™ ÒÔ¼° Asynchronous JavaScript + XML (Ajax) ±à³Ì¡£ÓëÀàËÆµÄ JavaScript ¿â²»Í¬£¬jQuery ......

ajax ¾Ö²¿Ë¢Ð·ÖÒ³ºÍ×Ô¶¯ËÑË÷Ìáʾ

 Ç°Ì¨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>
    <title>ÎÞ±êÌâÒ³</title>
    <style ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ