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

¾­µäAjaxµ÷ÓÃ

  function delDepart(){
      if(confirm("Ҫɾ³ý²¿ÃűØÐëɾ³ý¸Ã²¿ÃÅÓëÔ±¹¤µÄ¹ØÏµÒÔ¼°ÆäËùÓÐÏÂÊô²¿ÃÅ")){
      var departId=form1.departId.value;//²¿ÃÅID
      var url = "Depart/DelDepart.aspx?DepartId="+departId;
       xmlHttpRequest=createXMLHttpRequest();
       xmlHttpRequest.open("POST",url,true);
        xmlHttpRequest.onreadystatechange=function()
       {
           if(xmlHttpRequest.readyState==4 && xmlHttpRequest.status==200){
            alert(xmlHttpRequest.responseText);
            cal();
           }
       }
       xmlHttpRequest.send(null);
  }
  }
 


Ïà¹ØÎĵµ£º

jQuery ajaxµ÷ÓÃʾÀý

   ÎÒÔÚÉÏһƪÎÄÕÂÖÐʹÓÃԭʼjavascriptµÄ·½Ê½¹¹Ôìajaxµ÷Ó㬵«´ÓÈ«¾Ö¿´£¬²»½ö½ö´úÂëµÄÔĶÁÐԱȽϵͶøÇÒÒþ²Ø·¢Éú´íÎóµÄ¿ÉÄÜ£¬±ÈÈçÔÚÒ³Ãæ¼ÓÔØÊ±¾Í¸Ä±ädom½á¹¹£¬»¹ÒªÊ±¿Ì¹Ø×¢ä¯ÀÀÆ÷µÄ¼æÈÝÐÔ£¬¶øÊ¹ÓÃjQueryÎÒÃǽ«²»´æÔÚÀàËÆµÄÎÊÌ⣬´úÂëµÄ¿É¶ÁÐÔÒ²ÏÔÖøÌá¸ß£¬´úÂëÁ¿Ð¡£¬ÏÂÃæÊÇjQuery°æ±¾µÄjs²¿·Ö´úÂ룬ϣÍûÄܹ»¶Ô¶ÁÕß ......

jQuery AJAXµÄ5ÖÖʵÏÖ·½Ê½

What is AJAX
This section is for those who have no idea what AJAX is. If you don’t fall into this category, feel free to skip to the next section.
AJAX stands for asynchronous JavaScript and XML. If you see another term XHR, which is shorthand for XML HTTP request, it’s the same thing. ......

[ËÄÌìѧ»áajax]ѧϰajax½Ì³ÌµÚËÄÌì

ÔÚ HTML µÄÍⲿÎļþÖÐÒ»Ñù£¬±ê¼ÇµÄ×éÖ¯ÓëÆäÑùʽ¡¢¸ñʽºÍÐÐΪÊÇ·ÖÀëµÄ¡£ËäÈ»Äú¿Ï¶¨¿ÉÒÔÓà JavaScript ¸ü¸ÄÔªËØ»òÎı¾µÄÑùʽ£¬µ«Êµ¼Ê¸ü¸ÄÄúµÄ±ê¼ÇËù²¼ÖõÄ×é֯ȴ¸ü¼ÓÓÐȤ¡£
Ö»ÒªÀμÇÄúµÄ±ê¼ÇֻΪÄúµÄÒ³ÃæÌṩ×éÖ¯¡¢¿ò¼Ü£¬Äú¾ÍÄÜÁ¢ÓÚ²»°ÜÖ®µØ¡£ÔÙǰ½øÒ»Ð¡²½£¬Äú¾Í»áÃ÷°×ä¯ÀÀÆ÷ÊÇÈçºÎ½ÓÊÜËùÓеÄÎı¾×éÖ¯²¢½«Æäת±äΪ³¬¼¶ÓÐȤµ ......

ajax post example

<mce:script type="text/javascript" language="javascript"><!--
var http_request = false;
function makePOSTRequest(url, parameters) {
http_request = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
http_request = new XMLHttpRequest();
if (ht ......

ajaxµÄÏÂÀ­¿òÁª¶¯

<html>
<body>
<script¡¡language="JavaScript">
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡var¡¡req¡¡=¡¡null;
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡function¡¡test()¡¡{
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡var¡¡province¡¡=¡¡document.all("province").value;
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡req¡¡=¡¡new¡¡ActiveXObject("Microsoft.XMLHTTP ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ