AJAX ¿ò¼ÜJqueryµÄʹÓ÷½·¨
AJAX Á÷ÐÐÖ®ºó£¬×ÜÏëºÃºÃѧϰһÏ¡£µ«ÊÇÖÚ¶àµÄ¿ò¼ÜʵÔÚÄÑÒÔÑ¡Ôñ¡£ËµÃ÷һϠASP.NET AJAX ²¢²»°üÀ¨ÔÚ AJAX ¿ò¼ÜÖ®ÖС£
¸Õ¿ªÊ¼Ñ§ÁË JQuqery£¬ ÖÚ¶àµÄ $get(),...µÈµÈ·ûºÅÔçÒÑ°ÑÎÒ¸ãÔÎÁË¡£ÔÝʱ¾Í·ÅÆúÁË¡£
ºóÀ´Ñ§Ï° ASP.NET AJAX £¬ÔÚ΢ÈíµÄÁ쵼ϣ¬Öð½¥ÓÉ·þÎñÆ÷¶ËתÏò¿Í»§¶Ë±à³Ì¡£ ¼¤ÆðÎÒ¿Í»§¶Ë±à³ÌµÄÐËȤ£¬
²ÅÏëÆðѧϰһÏÂÁË Jquery.
Ëæ×ÅWEB2.0¼°ajax˼ÏëÔÚ»¥ÁªÍøÉϵĿìËÙ·¢Õ¹´«²¥£¬Â½Ðø³öÏÖÁËһЩÓÅÐãµÄJs¿ò¼Ü£¬ÆäÖбȽÏÖøÃûµÄÓÐPrototype¡¢YUI¡¢jQuery¡¢mootools¡¢BindowsÒÔ¼°¹úÄÚµÄJSVM¿ò¼ÜµÈ£¬Í¨¹ý½«ÕâЩJS¿ò¼ÜÓ¦Óõ½ÎÒÃǵÄÏîÄ¿ÖÐÄܹ»Ê¹³ÌÐòÔ±´ÓÉè¼ÆºÍÊéд·±ÔÓµÄJSÓ¦ÓÃÖнâÍѳöÀ´£¬½«¹Ø×¢µãתÏò¹¦ÄÜÐèÇó¶ø·ÇʵÏÖϸ½ÚÉÏ£¬´Ó¶øÌá¸ßÏîÄ¿µÄ¿ª·¢Ëٶȡ£
jQueryÊǼÌprototypeÖ®ºóµÄÓÖÒ»¸öÓÅÐãµÄJavascript¿ò¼Ü¡£ËüÊÇÓÉ John Resig ÓÚ 2006 Äê³õ´´½¨µÄ£¬ËüÓÐÖúÓÚ¼ò»¯ JavaScript™ ÒÔ¼°Ajax ±à³Ì¡£ÓÐÈËʹÓÃÕâÑùµÄÒ»±ÈÓ÷À´±È½ÏprototypeºÍjQuery£ºprototype¾ÍÏñJava£¬¶øjQuery¾ÍÏñruby. ËüÊÇÒ»¸ö¼ò½à¿ìËÙÁé»îµÄJavaScript¿ò¼Ü£¬ËüÄÜÈÃÄãÔÚÄãµÄÍøÒ³Éϼòµ¥µÄ²Ù×÷Îĵµ¡¢´¦Àíʼþ¡¢ÊµÏÖÌØЧ²¢ÎªWebÒ³ÃæÌí¼ÓAjax½»»¥¡£
Ëü¾ßÓÐÈçÏÂһЩÌص㣺
1¡¢´úÂë¼òÁ·¡¢ÓïÒåÒ׶®¡¢Ñ§Ï°¿ìËÙ¡¢Îĵµ·á¸»¡£
2¡¢jQueryÊÇÒ»¸öÇáÁ¿¼¶µÄ½Å±¾£¬Æä´úÂë·Ç³£Ð¡ÇÉ£¬×îаæµÄJavaScript°üÖ»ÓÐ20K×óÓÒ¡£
3¡¢jQueryÖ§³ÖCSS1-CSS3,ÒÔ¼°»ù±¾µÄxPath¡£
4¡¢jQueryÊÇ¿çä¯ÀÀÆ÷µÄ£¬ËüÖ§³ÖµÄä¯ÀÀÆ÷°üÀ¨IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+¡£
5¡¢¿ÉÒÔºÜÈÝÒ×µÄΪjQueryÀ©Õ¹ÆäËû¹¦ÄÜ¡£
6¡¢Äܽ«JS´úÂëºÍHTML´úÂëÍêÈ«·ÖÀ룬±ãÓÚ´úÂëºÍά»¤ºÍÐ޸ġ£
7¡¢²å¼þ·á¸»£¬³ýÁËjQuery±¾Éí´øÓеÄһЩÌØЧÍ⣬¿ÉÒÔͨ¹ý²å¼þʵÏÖ¸ü¶à¹¦ÄÜ£¬Èç±íµ¥ÑéÖ¤¡¢tabµ¼º½¡¢ÍÏ·ÅЧ¹û¡¢±í¸ñÅÅÐò¡¢DataGrid£¬Ê÷Ðβ˵¥¡¢Í¼ÏñÌØЧÒÔ¼°ajaxÉÏ´«µÈ¡£
jQueryµÄÉè¼Æ»á¸Ä±äÄãдJavaScript´úÂëµÄ·½Ê½£¬½µµÍÄãѧϰʹÓÃJS²Ù×÷ÍøÒ³µÄ¸´ÔӶȣ¬Ìá¸ßÍøÒ³JS¿ª·¢Ð§ÂÊ£¬ÎÞÂÛ¶ÔÓÚjs³õѧÕß»¹ÊÇ×ÊÉîר¼Ò£¬jQuery¶¼½«ÊÇÄúµÄÊ×Ñ¡¡£
jQueryÊʺÏÓÚÉè¼Æʦ¡¢¿ª·¢ÕßÒÔ¼°ÄÇЩ»¹ºÃÕߣ¬Í¬ÑùÊʺÏÓÃÓÚÉÌÒµ¿ª·¢£¬¿ÉÒÔ˵jQueryÊʺÏÈκÎJavaScriptÓ¦Óõĵط½£¬¿ÉÓÃÓÚ²»Í¬µÄWebÓ¦ÓóÌÐòÖС£
¹Ù·½Õ¾µã£ºhttp://jquery.com/ ÖÐÎÄÕ¾µã£ºhttp://jquery.org.cn/
1.2¡¢Ä¿µÄ
ͨ¹ýѧϰ±¾Îĵµ£¬Äܹ»¶ÔjQueryÓÐÒ»¸ö¼òµ¥µÄÈÏʶÁ˽⣬Çå³þJQueryÓëÆäËûJS¿ò¼ÜµÄ²»Í¬£¬ÕÆÎÕjQueryµÄ³£ÓÃÓï·¨¡¢Ê¹Óü¼Çɼ°×¢ÒâÊÂÏî¡£
¶þ¡¢Ê¹Ó÷½·¨
ÔÚÐèҪʹÓÃJQueryµÄÒ
Ïà¹ØÎĵµ£º
1.ʲôÊÇAjax?
AjaxµÄÈ«³ÆÊÇ£ºAsynchronous + JavaScript+XML --------------------> Òì²½µÄ(²»Í¬Ê±µÄ) javascript ¼° xml
2.AjaxµÄ¶¨Ò壺
Ajax²»ÊÇÒ»¸ö¼¼Êõ£¬Ëüʵ¼ÊÉÏÊǼ¸ÖÖ¼¼Êõ£¬Ã¿ÖÖ¼¼Êõ¶¼ÓÐÆä¶ÀÌØÕâ´¦£¬ºÏÔÚÒ»Æð¾Í³ÉÁËÒ»¸ö¹¦ÄÜÇ¿´óµÄм¼Êõ¡£
3.Ajax°üÀ¨£º
XHTMLºÍCSS
ʹÓÃÎĵµ¶ ......
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 ......
ÉÏ´«Ò³ÃæÖ»ÐèÒªÒ»¸öjsÒýÓúÍjsº¯ÊýµÄµ÷Ó㬼òµ¥·½±ã£¬²»Ó°ÏìÍøÒ³ÔÓв¼¾Ö¡£
ÏÂÔصØÖ·
µ÷ÓÃ˵Ã÷:
1.Ê×ÏÈÒýÓÃjsÎļþ
<script type="text/javascript" src="AienUpload/init.js"></script>
2.½«º¯Êýµ÷ÓÃ(showUpload(boxCtrl,inputCtrl,upPath,maxCount,fn);)°ó¶¨µ½HTMl¿Ø¼þʼþ£¬ÀýÈç
......
±¾ÊµÀýÖ»ÀûÓõ½JQueryÀà¿â±¾ÉíµÄº¯ÊýºÍ¹¦ÄÜ£¬²»ÐèÒªµÚÈý·½²å¼þµÄÖ§³Ö¡£ÁíÍ⣬ËùÓÐ±íµ¥ÐÅÏ¢¶¼ÊÇÀûÓÃPHPMailerÀà¿âÓʼþµÄÐÎʽ·¢Ë͸ø¹ÜÀíÔ±¡£Èç¹ûÄã¶ÔJQueryµÄ»ù±¾Óï·¨»¹²»ÊǺÜÊìϤ£¬ÇëËÑË÷±¾Õ¾µÄ½Ì³Ì×ÊÔ´¡£Èç¹ûÄã¶ÔPHPMailerÓ÷¨²»ÊìϤ£¬Çë²é¿´±¾Õ¾µÄÁíһƪÎÄÕ¡¶Ê¹ÓÃPHPMailerÀà¿â·¢Ë͵ç×ÓÓʼþ¡·¡£
µÚÒ»²½£¬´´½¨Ò»¸ö±íµ¥HTM ......
Õ⼸Ì칤×÷£¬ÓõÄÊÇAJAX¿ò¼Ü£¬½á¹ûµ¼³öExcel±í¸ñµÄʱºòÎÞ·¨µ¼³ö¡£
½â¾ö°ì·¨£º1¡¢ÔÚ.aspxÒ³ÃæÊ×ÐÐÖÐ<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JinHuoDan.aspx.cs" Inherits="out_store_JinHuoDan" %> Ìí¼ÓEnableEventValidation="false" £»
2¡¢ÔÚUPdatePanelÖÐÌí¼Ó</ContentTemplate>
......