Ajax ÔõôÈëÃÅÏêϸ½éÉÜÏ - Web ¿ª·¢ / Ajax
ÎÒ»áдһµãJavaScript¡£´ó¶àÊý¶¼ÄÜ¿´¶®¡£ÏëѧϰAjax¼¼Êõ£¬ÔõôÈëÃÅ°¡£¬ÎÒÓÃÊÇC#ÓïÑԵġ£×îºÃÄÜÏêϸµã
CSS code:
½¨ÒéȥѧjQuery£¬¼òµ¥¡¢Ò×ѧ¡¢Ò×Óá¢ÐÔÄÜÒ²ºÃ
²»Ñ§JQuery²»ÄÜѧAjaxÂð£¿
Á˽âÒ»ÏÂwebService,XML ,XmlHttpRequest¶ÔÏóµÄ¼¸¸ö·½·¨ºÍ¼¸¸öÊôÐÔ
ajax¾ÍÊÇ javascript´úÂë
»á javascriptµÄ»° ajax°ëÌì¾Í»áÁË
Èç¹û²»»á ¾ÍÓà jquery ÓÃÆðÀ´·Ç³£²»´í
Âò±¾Êé¿´¿´¡£¡£¡£Ò²²»ÊÇʲô¸ßÉîµÄ¼¼Êõ
Ŷ ÎÒ»¹ÏëµÄºÜÄÑÄØ
ÄãÖ÷Òª°ÑxmlHttpRequestÕâ¸ö×é¼þѧ»áÔõôÓá£ÄÇAJAXÒ²¾Íѧ»áÁË¡£
àŠлÁË ÓÐûÓÐÕâ·½ÃæµÄ×ÊÁϽ»Á÷ÏÂ
Ïà¹ØÎÊ´ð£º
°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.R ......
ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔÇ°servletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......
HTML code:
<tr>
<td valign="top" height="100%" id="TD1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat=&q ......
Êý¾Ý¿âÒѾ·ÅÁ˶àÌõ¼Ç¼£¬¼ì²âµÄ¶¼ÊÇÓ¢Îĵģ¬¿ÉÊÇÓÐЩÓû§Ãû¿ÉÒÔÕý³£¼ì²â³öÒѱ»×¢²áÁË£¬ÓÐЩÓû§ÃûÊý¾Ý¿âÖÐȷʵ´æÔڵĵ«¾ÍÊǼì²â²»³öÒÑ´æÔÚ£¨ÔÚ×¢²áÒ³Ã滹ÊÇÏÔʾδ±»×¢²á£©£¬±ÈÈçÊý¾Ý¿âÖÐÓÐ Ò»¸öÓû§ÃûΪ£ºlb Î񱒵 ......
Çë½Ì¸ßÈË£¬AjaxÔÀíÏêϸ½²½â ¼°´úÂë˵Ã÷
ÎÒ²Á£¬ÉÏgoogle°¡¡£
http://www.w3school.com.cn/ajax/index.asp
Â¥Ö÷ʲôÒâͼÄØ£¿
³ö ´¦:http://www.javaeye.com/topic/636187
û×ö¹ýwebÇ°¶Ë£¬ËùÒÔÍêȫûÓÐÓà ......