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

PHP+AjaxʵÏÖTabЧ¹û

ÓÃAjaxʵÏÖTabЧ¹ûµÄ
ÏÈ´´½¨
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>
<title>Sample 2_1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
<!--
//Create a boolean variable to check for a valid Internet Explorer instance.
var xmlhttp = false;
//Check if we are using IE.
function creatXMLHttp(){
 try
 {
  //If the Javascript version is greater than 5.
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  //alert ("You are using Microsoft Internet Explorer.");
 }
 catch (e)
 {
  //If not, then use the older active x object.
  try
  {
   //If we are using Internet Explorer.
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
   //alert ("You are using Microsoft Internet Explorer");
  }
  catch (E)
  {
   //Else we must be using a non-IE browser.
   xmlhttp = false;
  }
 }
 //If we are using a non-IE browser, create a javascript instance of the object.
 if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
 {
  xmlhttp = new XMLHttpRequest();
  //alert ("You are not using Microsoft Internet Explorer");
 }
}
function makerequest(serverPage, objID)
{
 creatXMLHttp();
 var obj = document.getElementById(objID);
 xmlhttp.open("GET", serverPage);
 xmlhttp.onreadystatechange = function()
 {
  if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
  {
   obj.innerHTML = xmlhttp.responseText;
  }
 } 
 xmlhttp.send(null);


Ïà¹ØÎĵµ£º

PHP»ù±¾°²È«·À·¶£¬³õѧÕ߱ؿ´

1¡¢Ò»°ãÒ³Ãæͨ¹ýGET½ÓÊյIJÎÊý¶¼ÊÇINTÐÍ£¨ÕûÐÍ£©¾Ó¶à£¬µ«ÊÇÒª·À·¶Ò»Ð©²»¹æ·¶µÄÊäÈ룬½ÓÊÕʱÓÃÕûÐͺ¯Êýת»»Ò»ÏÂ
            $id=intval($_GET["id"]);
2¡¢ÓÐÉÏ´«¹¦ÄÜʱ£¬Ò»¶¨Òª¼ì²éÎļþÀàÐÍ¡£²»ÄÜÈÎÒâÓɷÿÍÉÏÔØËùÓÐÎļþ¡££¨ÌرðҪעÒâһЩHTML±à¼­Æ÷µÄ©¶´£©
3 ......

ÎÞÐֵܣ¬²»±à³Ì ¶¥ÐÖµÜÁ¬PHPѧԺ

         ÕæÐֵܣ¬½²ÒåÆø£¬Í¬¸Ê¿à£¬¹²½øÍË¡£
        ¡¶ÐÖµÜÁ¬¡·µçÓ°µÄÉÏÓ³£¬´ó¼Ò·×·×¸ø³öÁ˺ÃÆÀ¡£²»¾ÍÊÇÒ»²¿Õ½ÕùƬô,ΪºÎÓÐÈç´ËÇ¿ÁÒµÄÏìÓ¦?Ê×ÏÈÕâÊÇÒ»²¿Õ½ÕùƬ²¢Ã»´í£¬µ«¡¶ÐÖµÜÁ¬¡·µçÓ°¸ü¶àµÄÊÇÑóÒç×ÅÄÇÖÖÏàå¦ÒÔÄ­µÄÐÖµÜÇéÒ壬¼áÈçÅÍʯ¡£¶à ......

ajax°²×°


web2.0ºá¿Õ³öÊÀ£¬ajaxÊ×µ±Æä³å£¬½ñÌì×öwebµÄÈç¹ûÔÙ²»Ñ§µãajaxµÄ»°£¬¾ÍÏÔµÄÂäÎéÁË£¬¶øѧajaxµÄÓõĻ·¾³Èç¹ûÊÇasp.net£¬ÄÇajax.netÄã¾Í²»µÃ²»Ñ§ÁË¡£Ê×ÏȾÍÊÇ»·¾³µÄÅäÖã¬ÈçÏÂ
vs2005+sql2005+Winxp sp2+ie6.0+Office2003»·¾³ÉèÖÃÈçÏ£º
ÏÂÔØÍê ASPAJAXExtSetup.msi °²×°¸üкóÔÚÄãµÄϵͳÅÌϵģ¨ÒÔCÅÌΪÀý£© ³öÏÖÕâ¸ö Îļ ......

jQuery Ajax»º´æÎÊÌâ

ÔÚʹÓÃjQuery µÄAjax¼ÓÔØÊý¾ÝÊÇ Èç¹ûʹÓÃget·½Ê½´«µÝ²ÎÊýÔò´æÔÚÒ»ÏÂÎÊÌâ
firefoxÏ´«µÝÊý¾ÝÕý³£
ieÏÂÔò»á³öÏÖ»º´æÎÊÌâ
½â¾ö·½·¨£º
1¡¢http://yourwebsite?parseInt(Math.random() * 1000) ÔÚurlºóÃæ¼ÓÉÏÒ»¸öËæ¼´Êý£¬ÕâÑùÿ´Î·¢Ë͵ľͲ»Ò»ÑùÁË£¬¶øÇÒ²»Ó°ÏìÄãµÄ¹¦ÄÜ.
2¡¢Ê¹ÓÃpost´«µÝ²ÎÊý
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ