Ajax£¬Ñ¡Ôñͬ²½»¹ÊÇÒì²½
Ajax£¬Ñ¡Ôñͬ²½»¹ÊÇÒì²½
AjaxÔÚÍøÒ³ÖÐ×î´óµÄÒ»¸öÓŵãÊÇËü¿ÉÒÔ·ÃÎÊ·þÎñÆ÷ÉϵÄÐÅÏ¢¶ø²»ÐèÒªÖØмÓÔØÍøÒ³¡£ÕâÒâζ×ÅÒª¼ìË÷»òÊǸüÐÂÐÅÏ¢µÄijһС¸ö²¿·ÖµÄʱºò£¬Ö»ÐèÒª´Ó·þÎñÆ÷¶Ë´«ËÍÄÇÒ»²¿·ÖÐèÒªµÄÐÅÏ¢¶ø²»ÐèÒªÖØÐÂÏÂÔØÕû¸öÍøÒ³¡£
¡¡¡¡Ajax¿ÉÒÔͨ¹ýÁ½ÖÖ·½·¨·ÃÎÊ·þÎñÆ÷£¬¼´Í¬²½(½Å±¾»áÍ£Áô²¢µÈ´ý·þÎñÆ÷·¢Ëͻظ´È»ºóÔÙ¼ÌÐø)ºÍÒì²½(½Å±¾ÔÊÐíÒ³Ãæ¼ÌÐøÆä½ø³Ì²¢´¦Àí¿ÉÄܵĻظ´)¡£
¡¡¡¡Í¬²½´¦ÀíÄãµÄÇëÇóÓÐÒ»µãÏñÖØмÓÔØÒ³Ã浫ÊÇÖ»ÐèÒªÏÂÔØÒªÇóµÄÐÅÏ¢¶ø²»ÊÇÕû¸öÒ³Ãæ¡£Òò´ËÕâÒ»·½·¨»á±È²»Ê¹ÓÃAjaxÒª¿ìһЩÒòΪÐÅÏ¢µÄÏÂÔØÁ¿ÒªÐ¡£¬ËùÒÔ¼ìË÷µÄËٶȾͿìÁË¡£µ«ÊÇҪʹÓÃÕâ¸ö·½·¨ÐèÒªÄãµÄ·Ã¿ÍµÈ´ýÏÂÔØÇëÇóµÄ³öÏÖ¡£ËäÈ»ÄãµÄ·Ã¿ÍÒѾϰ¹ßÁ˵ȴýÏÂÔØÕû¸öÒ³Ã棬µ«ÊÇËûÃÇ»¹²»Ï°¹ßÔÚÓëÍøÒ³»¥¶¯µÄʱºò½øÐеȴý£¬Òò´Ë³ý·ÇÄãÒªÇóµÄÐÅÏ¢ÊÇСµ½¿ÉÒÔѸËÙÏÂÔØÍêµÄ£¬·ñÔòÓû§ÊDz»»áÄÍÐÄÈ¥µÈ´ýµÄ¡£
¡¡¡¡Òì²½´¦Àí±ÜÃâÁË·þÎñÆ÷¼ìË÷ʱºòµÄÑÓʱÎÊÌ⣬ÒòΪÄãµÄ·Ã¿Í¿ÉÒÔ¼ÌÐøÔÚÒ³Ãæ½øÐвÙ×÷£¬¶øÒªÇóµÄÐÅÏ¢Ò²¿ÉÒÔÔÚ¸üÐÂÒ³ÃæµÄͬʱµÃµ½´¦Àí¡£¶ÔÓڽϴóµÄÇëÇóÀ´Ëµ£¬ËùÐèµÄÏìӦʱ¼ä½Ï³¤£¬µ«ÊÇÈç¹ûʹÓÃÒì²½´¦Àí£¬ÄÇô·Ã¿Í²»»áÌرðÒâʶµ½ÑÓʱËù´øÀ´µÄÂé·³£¬ÒòΪËûÃǵÄ×¢ÒâÁ¦ÈÔÈ»·ÅÔÚ¶ÔÒ³ÃæµÄ²Ù×÷ÉÏ¡£¶ø¶ÔÓÚÄÇЩ˲ʱµÄÏìÓ¦£¬ÄãµÄ·Ã¿ÍÉõÖÁ¸ù±¾²»»áÒâʶµ½·þÎñÆ÷·¢³öÁËÕâÑùµÄÇëÇó¡£
¡¡¡¡Òò´ËʹÓÃÒì²½µ÷ÓÃÊÇAjaxÖбȽÏÊÜÇàíùµÄ·½·¨£¬ÕâÖÖ·½·¨¿ÉÒÔΪ·Ã¿ÍµÄ·ÃÎÊÌṩ¸ü±ã½ÝµÄ·þÎñ£¬Ê¹µÃËûÃǸüÓäÔã¬Ò²±ÜÃâÁËAjax¸ÉÈÅÆäËûÒ³ÃæµÄ²Ù×÷¡£
¡¡¡¡Èç¹ûÒì²½µ÷ÓöÔÓڷÿÍÀ´ËµÊÇ¿ÉÒÔÌṩ±Èͬ²½µ÷Óøü·½±ãµÄ·ÃÎʵĻ°£¬ÄÇôΪʲôAjax»¹ÒªÎªÎÒÃÇÌṩͬ²½µ÷ÓÃÄØ?ËäÈ»Òì²½µ÷ÓõÄʹÓÃÂʼ¸ºõÊÇ°Ù·ÖÖ®°Ù£¬µ«ÊÇ×ÜÊÇÓÐһЩÀýÍâÇé¿öµÄ¡£ÔÚ¼«ÉÙ¼ûµÄÇé¿öÏ£¬ÈÃÄãµÄ·Ã¿ÍÔÚijһÌض¨·þÎñÆ÷¶ËµÄ´¦Àí¹ý³Ì½áÊøÇ°£¬ÈÃÄãµÄ·Ã¿Í¼ÌÐø²Ù×÷Ò³ÃæÊÇûÓÐʲôÒâÒåµÄ¡£Èç¹ûÊÇÅöµ½ÕâÑùµÄÇé¿ö£¬»òÐí¸ù±¾²»ÒªÊ¹ÓÃAjax¶øÖ»ÊÇÖØÐÂÔØÈëÕû¸öÒ³Ãæ¡£AjaxÖеÄͬ²½Ñ¡ÔñÊÇΪ¼«ÉÙÊý¼È²»ÄÜʹÓÃÒì²½µ÷ÓÃÒ²²»ÄÜÖØÐÂÔØÈëÕû¸öÒ³ÃæµÄÇé¿ö¶ø×¼±¸µÄ¡£ËäÈ»ÕâÑùµÄÇé¿ö²»¶à£¬µ«ÊÇËüÃÇȷȷʵʵ´æÔÚ£¬Òò´ËΪÒÔ·ÀÍòÒ»AjaxÐèҪ׼±¸Í¬²½µ÷Óá£
¡¡¡¡¶ÔÓںܶà³õѧÕßÀ´Ëµ£¬ÈÝÒ×µôÈëʹÓÃͬ²½µ÷ÓõÄÎóÇø£¬¼´±ãÊÇÔÚ¸üÊʺÏʹÓÃÒì²½µ÷ÓõÄʱºò£¬ËûÃÇ»¹ÊÇÒ»Èç¼ÈÍùµØÑ¡Ôñͬ²½µ÷Óá£Ôì³ÉÕâÒ»Çé¿öµÄÔÒòÖ÷ÒªÊÇÒòΪͬ²½µ÷ÓøüÈÝÒ×ÈÃÈËÀí½âÕû¸ö½ø³ÌÊÇÔõÑùÔËÐеġ£ÊÂʵÉÏ£¬³ýÁ˲»ÐèÒªµÈ´ýÏìÓ¦ÒÔÍ⣬Òì²½µ÷ÓõŤ×÷ÔÀíºÍͬ²½µ÷ÓôóͬСÒì¡£
¡¡¡¡Á½ÕßΨһµÄÇø±ðÊÇÔÚʹÓÃÒì²½µ÷ÓõÄʱºò£¬ÎÒÃÇ¿
Ïà¹ØÎĵµ£º
1£® Ê×ÏÈÏÂÔØ dwr.jar°ü£¬ÏÂÔصØÖ·: http://directwebremoting.org/dwr/
2£® ÔÚÓ¦ÓÃÖÐÒýÈë dwr.jar°ü
3£® ÐÞ¸Äweb.xmlÅäÖÃÎļþ
<servlet>
<servlet-name>dwr</servlet-name>
......
1\ÒýÓÃajax.dll»òÕßajaxpro.dllµ½vs2005¹¤³ÌÖÐ
ÔÚweb.configÎļþÖеģ¼system.web£¾¼ÓÈëajaxÉèÖÃ
£¼httpHandlers£¾
¡¡£¼add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/£¾
£¼/httpHandlers£¾
2\±àдajax´úÂë
&nb ......
Download board.zip - 39.6 KB - Old Version
Download board_2008.zip - 55.03 KB - Latest VS 2008 Version
Introduction
This is an AJAX based WhiteBoard application. Typically unlike their desktop based counterparts, web applications need to be designed to use optimal ......
<html>
<head>
<title>jQuery Ajax ʵÀýÑÝʾ</title>
</head>
<script language="javascript" src="../lib/jquery.js"></script>
<script language="javascript">
$(document).ready(function ()
{
$('#send_ajax').click(function (){
&nb ......