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

Ajax ÈëÃÅ£¨Ò»£©

Microsoft Ajax LibraryÃüÃû¿Õ¼ä
¿Í»§¶ËÃüÃû¿Õ¼ä ÃèÊö
Global JavaScriptÄÚ²¿ÀàµÄÀ©Õ¹£¬ÈçArray¡¢Boolean¡¢string¡¢Error¡¢NumberºÍObject
Sys ¸ùÃüÃû¿Õ¼ä£¬ËüÊÇÔÚ¿Í»§¶ËÓë.net FrameworkÖеÄSystemÃüÃû¿Õ¼äµÈͬµÄÀ࣬Õâ¸öÃüÃû¿Õ¼ä°üÀ¨Ò»Ð©»ù´¡À࣬ÈçApplicationºÍStringBuilder.,»¹ÓÐһЩÓÐÓõĽӿڣ¬ÈçIDisposableºÍINotifyPropertyChange
Sys.Net ÓÃÀ´Ö´ÐкÍÍøÂçÏà¹ØµÄÀ࣬ÀýÈçWebQequestÀàºÍXmlHttpExcutorÀà¡£Õâ¸öÃüÃû¿Õ¼äÐéÄâµÄ·â×°ÁË¿Í»§¶Ë/·þÎñÆ÷µÄͨÐÅ
Sys.Serialization ÔÚ¿Í»§¶ËºÍ·þÎñÆ÷Ö®¼ä´®Ðл¯¶ÔÏó
Sys.WebForms °üÀ¨ASP.net AjaxÖк;ֲ¿ÍøÒ³»ØËͼ¼ÊõÓжεŦÄÜ£¬ÀýÈ磬Ëü°üÀ¨PageRequestManagerÀà
Sys.UI °üº¬ºÍÓû§½çÃæÏà¹ØµÄÌØÕ÷£¬ÀýÈçÓû§¡¢¿Ø¼þºÍö¾Ù
Sys.Service ÌṩAsp.net·þÎñ¶Ë·þÎñµÄ·ÃÎÊ£¬ÀýÈçÉí·ÝÑéÖ¤ºÍÅäÖ÷þÎñ
MS Ajax LibraryÖеÄJavascript±»Éè¼Æ³ÉÏñc#µÄ¹¤×÷·½Ê½¡£¿Í»§¶Ë±à³Ì¾ÍÏñʹÓÃc#´úÂëÔÚ.net FrameWorkÉϱà³Ì¡£
ÀýÈ磺



var sb=new Sys.StringBuilder("In the Beginning");
sb.append("\r\n");
sb.append("Microsoft Created ASP");
alert(sb.toString())

¹¤×÷Ô­Àí£ºÊ¹ÓÃAsp.net Ajax-Enabled Web Site Ä£°å´´½¨µÄWEBÏîÄ¿¿ÉÒÔÈ·±£ËùÓеÄasp.net ajaxµÄÒýÓö¼¿ÉÒÔ°üÀ¨ÔÚweb.configÖУ¬ÔÙÒ²ÂôŪÌí¼ÓscriptManager¿ÉÒÔÈ·±£Asp.net ajax»áÏÂÔØËùÐèÒªµÄMicrosoft Ajax LibraryÖÐ µÄJavaScriptÎļþ£¬ÕâЩÎļþ»áËæÖ®¶¨ÒåÔÚ¶¨ÖÆJavaScript´úÂë¿éÖеĶÔÏóÄ£ÐÍ¡£
·þÎñÆ÷¶ËÃüÃû¿Õ¼ä¼°ÆäÃèÊö
Using sw=system.Web
·þÎñÆ÷¶ËÃüÃû¿Õ¼ä ÃüÃû¿Õ¼äµÄÃèÊö
Sw.Configuration ÌṩÔÚweb.configÖÐÓëasp.net ajaxÓйصIJ¿·ÖµÄ³ÌÐò¼¶·ÃÎÊ
Sw.Handlers ÓÅ»¯µÄ¶Ô½Å±¾ÏÂÔصĻñÈ¡¹¦ÄÜ
Sw.script.Serlialization Ìṩ¿ÉÀ©Õ¹µÄJSON´®Ðл¯ºÍ·´´®Ðл¯¹¦ÄÜ
Sw.script.services ¶¨Òåµ÷ÓÃweb·þÎñµÄÀà
Sw.UI °üº¬¹ÜÀí¹¦ÄܺÍÍøÂçͨÐÅ´úÂ룬ÒÔ¼°ËùÐèÒªµÄ·þÎñÆ÷¿Ø¼þºÍ¿Ø¼þÉè¼Æ³ÌÐò
Asp.net ajax Öаüº¬µÄ·þÎñÆ÷¿Ø¼þ
¿Ø¼þÃû³Æ ¿Ø¼þÃèÊö
ScriptManager ÔËÐÐʱ²»¿É¼û£¬Ã¿¸öÆôÓÃasp.net ajax µÄWeb±íµ¥Ëù±ØÐëµÄ¡£Ö¸»Ó¹ÜÀí¿Í»§¶ËµÄ½Å±¾£¬Ã¿¸öÒ³ÃæÖ»ÔÊÐíÓÐÒ»¸ö´Ë¿Ø¼þµÄʵÀý¡£
ScriptManagerProxy ÔËÐÐʱ²»¿É¼û¡£Èç¹ûÔÚMasterÒ³°üº¬ScriptManager¿Ø¼þ£¬²¢ÇÒÄÚÈÝҳϣÍûʹÓÃAjax¹¦ÄÜ£¬ÔÚÄÚÈÝÒ³±ØÐëʹÓøÿؼþÓëScriptManagerµÄ½Å±¾


Ïà¹ØÎĵµ£º

AjaxµÄÔ­ÀíºÍÓ¦ÓÃ

¹ØÓÚajaxµÄÃû×Ö
    ajax µÄÈ«³ÆÊÇAsynchronous JavaScript and XML£¬ÆäÖУ¬Asynchronous ÊÇÒì²½µÄÒâ˼£¬ËüÓбðÓÚ´«Í³web¿ª·¢ÖвÉÓõÄͬ²½µÄ·½Ê½¡£
¹ØÓÚͬ²½ºÍÒì²½
 
Òì²½´«ÊäÊÇÃæÏò×Ö·ûµÄ´«Ê䣬ËüµÄµ¥Î»ÊÇ×Ö·û£»¶øͬ²½´«ÊäÊÇÃæÏò±ÈÌصĴ«Ê䣬ËüµÄµ¥Î»ÊÇè壬Ëü´«ÊäµÄʱºòÒªÇó½ÓÊÜ·½ºÍ·¢ËÍ·½µÄʱÖÓÊ ......

DWR AJAX¸ü·½±ã

¸½springÕûºÏDWR(°üº¬struts1,spring,hibernateÕûºÏÖÃ):
http://blog.csdn.net/jiabeis/archive/2010/05/26/5626121.aspx
×î½üÁ˽âÁËÒ»¸öÓÐÓõÄAJAX¹¤¾ß£¬¿´ÁËÍøÉϵÄÎÄÕÂÕâÀïÓÐһЩժ³­ºÍ×Ô¼ºµÄ×ܽᣬºÍ´ó¼Ò·ÖÏí£º
ʲôÊÇDWR(Direct Web Remote)£¿
DWRÊÇÒ»ÖÖAJAX½â¾ö·½°¸£¡
DWR°üÀ¨Ò»¸öjava¿â£¬ÒÔ¼°Ò»Ì×javascript£¬Ê¹ ......

дһ¸öajax funciton

function Ajax(url)
{
var m_xmlReq=null;
if(window.ActiveXObject)
{
try
{
m_xmlReq = new ActiveXObject('Msxml2.XMLHTTP');
}
catch(e)
{
try{m_xmlReq = new ActiveXObject('Microsoft.XMLHTTP');}catch(e){}
}
}
else if(window.XMLHttpRequest ......

ajax»º´æÎÊÌâ½â¾ö;¾¶

ÎÒÓÃPHPºÍAjax½áºÏ£¬Ìí¼ÓÊý¾ÝÖ®ºó£¬Ë¢ÐÂǰ̨ҳÃ棬Êý¾ÝûÓб仯¡£
ÎҸĶ¯PHP¶¯Ì¬½Å±¾£¬Ö»ÓÐÖØÐÂÕÒ¿ªIEÔÙÊäÈëµØÖ·£¬²ÅÄÜ¿´µ½Ð§¹û¡£
ÒÔÉÏÕâЩÊDz»ÊÇ»º´æµÄÔ­Òò°¡£¿Ôõô½â¾ö£¿
ajax»º´æÎÊÌâ½â¾ö;¾¶£º
ÊÇ»º´æµÄÎÊÌâ¡£
ÔÚ·þÎñ¶Ë¼Ó header("Cache-Control: no-cache, must-revalidate");
²¢ÇÒÔÚÄãµÄJSÌá½»²ÎÊýÖмÓËæ»ú» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ