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

IDE ȱÉÙ»ù´¡ÄÜÁ¦¼¯µ÷Óÿ⣬ÕâÊÇÒ»¸ö¼òµ¥µÄAjaxµ÷Óá£

var jsonObj;
var xmlhttp = null;
function callAsync(url, callbackSuccess)
{
 xmlhttp = new Ajax();
 xmlhttp.open("GET", url, true);
 xmlhttp.onreadystatechange=function()
 {
  // readyState = 4 ; "complete"
  if (xmlhttp.readyState==4)
  {
   // status = 200 ; "ok"
   if(xmlhttp.status == 200)
   {
    uiManager.showNotification(1000, "ok", "Done");
    /*
     *  Remove the substr "jsonFlickrApi(" from the responseText
     */
    var text = xmlhttp.responseText;
    text = text.substr(14, text.length-15);
 
    // Create JSON Oject
    jsonObj = eval('(' + text + ')');
    
    callbackSuccess(jsonObj);
   }
   else
   {
    uiManager.showNotification(1000, "warning", "Failed to get data from server");
   }
  }
 }
 xmlhttp.send(null);
}


Ïà¹ØÎĵµ£º

AjaxÖÐÇëÇó±»»º´æµÄÎÊÌâ

½ñÌì¸ãÁËÎÒÈýËĸöСʱµÄÎÊÌ⣬ÖÕÓÚÕÒµ½½â¾ö·½°¸ÁË¡£¹þ¹þ¡£
ÔÚAjax¿ª·¢ÖУ¬»áÓöµ½ä¯ÀÀÆ÷»º´æÄÚÈݵÄÎÊÌ⣬±ÈÈ磬ij¸öÔªËØ×¢²áÁËÊó±êʼþ£¨onmouseover£©£¬Ê¼þ´¥·¢ºó»áͨ¹ýxmlhttprequestµ½·þÎñÆ÷»ñÈ¡ÄÚÈÝ£¬ÔÚ²»Ë¢ÐÂÒ³ÃæµÄÇé¿öÏ£¬ä¯ÀÀÆ÷»á»º´æµÚÒ»´ÎÇëÇóµÄÄÚÈÝ£¬·þÎñ¶Ë¸üкóä¯ÀÀÆ÷ÈÔÈ»ÏÔʾµÚÒ»´ÎµÄÄÚÈÝ¡£
ͨ³££¬ÕâÖÖÇëÇó¶ ......

JqueryµÄAJAXʹÓùý³ÌÖеÄÌå»á

<mce:script type="text/javascript"><!--
function login(){
var postURL = "http://localhost:8080/cas/simpleLogin";
var params = {
"loginUrl":$("#loginUrl").val(),
"service":$("#service").val(),
"login":$( ......

VB.NET+AJAXËÑË÷½¨Ò鹦ÄܵÄʵÏÖ

IDE£ºVisual Web Developer 2008 Express Edition
Êý¾Ý¿â£ºAccess 2007
µ½http://www.asp.net/ajax/downloads/ÏÂÔØAJAX Control Toolkit£¬½«AjaxControlToolkit.dll¿½±´µ½ÏîÄ¿µÄbinĿ¼Ï£¬ÔÚ¹¤¾ßÀ¸ÖÐÒýÈë¡£
WebServiceµÄ´úÂ룺£¨aaa.asmx£©
Public Function GetCompletionList(ByVal prefixText As String, ByVal coun ......

AJAX (XHR)Òì²½ÇëÇóµÄһЩÈÏʶ

function sendAsynchronRequest(url,parameter,callback){
 createXMLHttpRequest();
 if(parameter == null){
  xmlHttp.onreadystatechange = callback;
  xmlHttp.open("GET",url,true);//µ±GETÇëÇóʱ£¬ÔÚµØÖ·À¸ÖÐÊÇ´ø²ÎÊýµÄ£¬¶ø²ÎÊýΪNULL£¬ËùÒÔÓÃgetÇëÇó£¬send(null)
   ......

10¸ö·Ç³£°ôµÄAjax¼°JavascriptʵÀý×ÊÔ´ÍøÕ¾

1.Ajax Rain
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAJAX, CSS, DHTML »ò JavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ(¿ª·¢)ʦ¡£
Ajax/JavascriptʵÀý:
 EXT JS Date Picker
 jQuery Feed Menu
 jGrowl
 FastFind Menu – Jquery
 Spiffy Accordion
2.Ajax Daddy
¡¡¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ