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

Á÷ÐеÄAJAX¿ò¼Ü¶Ô±È£ºjQuery£¬Mootools£¬Dojo£¬Ext JS

AJAX
ÊÇweb2.0
µÄ»ùʯ£¬ÏÖÔÚÍøÉÏÁ÷Ðм¸ÖÖ¿ªÔ´µÄAJAX¿ò¼Ü£¬±È
È磺jQuery,Mootools,Dojo,Ext JSµÈµÈ£¬ÄÇôÎÒÃǵ½µ×ÔÚʲôÇé¿öϸÃʹÓÃÄǸö¿ò¼Ü£¿ÒÔÏÂÊÇÒ»×éÕª³­µÄÊý¾Ý£º
AjaxianÔÚ2007Äêµ×¶ÔAjax¹¤¾ß½øÐÐÁ˵÷²é£¬²¿·Öµ÷²é½á¹û¼ûÏÂ±í£¨ÆäÖÐÊý×ÖΪµ÷²éÕßʹÓøù¤¾ßµÄ°Ù·Ö±È£¬ÏêϸµÄÇë²Î¼ûÍøÒ³£©£ºhttp://ajaxian.com/archives/2007-ajax-tools-usage-survey-results
Prototype
jQuery
Ext
Script.aculo.us
Mootools
YUI
JSON
Dojo
Backbase
34.1%
29.3%
22.5%
22.3%
14.3%
13%
12.9%
11.8%
8.3%
ÆäÖÐPrototypeʹÓÃÂÊ×î¸ß£¬ºÜ´ó³Ì¶ÈÉÏÊÇÒòΪËüÊÇ×îÔç³ÉÊìµÄ¿ò¼Ü£¬ºÜ¶àÒÔÇ°ÔÚÏîÄ¿ÖвÉÓã¬ËùÒÔÏÖÔÚÒ»Ö±ÔÚÓÃ
ÈÃÎÒÃÇÀ´¿´¿´Ñ¡ÔñAJAX¿ò¼ÜµÄ»ù´¡£º
ÄãµÄÏîÄ¿ÐèÇ󣨼´ÄãÐèÒªÄÄЩÌØÐÔ£¬ÀýÈçÊÇ·ñÒªÇó×ö³ö¾«ÃÀµÄ½çÃæ¡¢ÌØЧ»òÆäËü¹¦ÄÜ£©
ÊÇ·ñÖ§³ÖAµÈ¼¶µÄä¯ÀÀÆ÷£¨IE, FirefoxµÈ£©?
ÎĵµµÄÖÊÁ¿£ºÊÇ·ñÍêÉÆ£¨°üº¬½Ì³Ì£¬API£¬´úÂëʾÀýµÈ£©
¿ò¼ÜµÄ¿ÉÀ©Õ¹ÐÔÈçºÎ£¿Îª¿ò¼Üд²å¼þÈÝÒ×Âð£¿
ÄãÊÇ·ñϲ»¶ËüµÄAPIµÄ·ç¸ñ£¿
ÄÜ´ó¶à³Ì¶ÈÉÏͳһÄãµÄJavaScript´úÂëµÄ·ç¸ñ£¿
¿ò¼Ü´óС£¨Ì«´óµÄ¿ò¼Üµ¼ÖÂÓû§ÏÂÔØʱ¼äµÄÑÓ³¤£©
¿ò¼ÜÊÇ·ñÇ¿ÆÈÄã¸Ä±äдHTMLµÄ·½Ê½£¨Dojo¾ÍÊÇÕâÑù£©£¿
´úÂëÖ´ÐÐËٶȣºÐÔÄÜÈçºÎ£¿
´úÂëÊÇ·ñΪģ¿é»¯£¨MootoolsΪ¸ß¶ÈÄ£¿é»¯£©£¿´úÂë¿ÉÖØÓÃÐÔÈçºÎ£¿
 jQuery
Ö÷Ò³£ºhttp://jquery.com/
Éè¼Æ˼Ïë
¼ò½àµÄ˼Ï룺¼¸ºõËùÓвÙ×÷¶¼ÊÇÒÔÑ¡ÔñDOMÔªËØ£¨ÓÐÇ¿´óµÄSelector£©¿ªÊ¼£¬È»ºóÊǶÔÆäµÄ²Ù×÷£¨ChainingµÈÌØÐÔ£©¡£
Óŵã
С£¬Ñ¹Ëõºó´úÂëÖ»ÓÐ20¶àk£¨ÎÞѹËõ´úÂë94k£©¡£
SelectorºÍDOM²Ù×÷µÄ·½±ã£ºjQueryµÄSelectorÓëmootoolsµÄElement.Selectors.js±È½Ï£¬CSS
Selector, XPath Selector£¨1.2ºóÒÑɾ³ý£©
Chaining£º×ÜÊÇ·µ»ØÒ»¸öjQuery¶ÔÏ󣬿ÉÒÔÁ¬Ðø²Ù×÷¡£
ÎĵµµÄÍêÕû£¬Ò×ÓÃÐÔ£¨Ã¿¸öAPI¶¼ÓÐÍêÕûµÄÀý×Ó£¬ÕâÊÇÆäËü¿ò¼ÜÏÖÔÚ²»Äܱȵģ©£¬¶øÇÒÍøÉÏ»¹ÓкܶàÆäËüµÄÎĵµ£¬Êé¼®¡£
Ó¦ÓõĹ㷺£¬°üÀ¨google codeҲʹÓÃÁËjQuery¡£
ʹÓÃjQueryµÄÕ¾µã£ºhttp://docs.jquery.com/Sites_Using_jQuery
ºËÐĵĿª·¢ÍŶӺͺËÐÄÈËÔ±£ºJohn ResigµÈ¡£
¼ò½àºÍ¼ò¶ÌµÄÓï·¨£¬ÈÝÒ׼ǡ£
¿ÉÀ©Õ¹ÐÔ£ºÓдóÁ¿Óû§¿ª·¢µÄ²å¼þ¿É¹©Ê¹Óã¨http://jquery.com/plugins/
£©
jQuery UI£¨http://jquery.com/plugins/
£¬
»ùÓÚjQuery£¬µ«ºÍºËÐĵÄjQueryÊǶÀÁ¢µÄ£©£¬²»¶Ï·¢Õ¹ÖС£
ÓѺúͻîÔ¾µÄÉçÇø£ºgoogle groups: http://docs.jquery.com/Discussion
ʼþ´¦ÀíÓкܶ෽±


Ïà¹ØÎĵµ£º

AJAX¼¯³ÉÓÚASP.NET

APS.NETÒ¹»°µÄÀý×Ó¼ÓÔغ󱨴íÈçÏ£º
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35´íÎó
Ô­ÒòÊÇδÄܼÓÔØÎļþ»ò³ÌÐò¼¯ system.web.extensions
½â¾ö°ì·¨:
1,Èç¹ûÄãµÄ³ÌÐòÔËÐÐÔÚÄãÄÜ¿ØÖƵķþÎñÆ÷ÉÏ£¬ÄÇô°²×°asp.net ajax¾ÍÐÐÁË£¬ÕâÊÇSystem.Web.ExtensionsµÈdll×öΪGAC² ......

AJAXÖÐÎÄÂÒÂëµÄÁ½ÀàÎÊÌâ½â¾ö·½·¨

1£©·¢ËÍ·¾¶ÖеIJÎÊýÓÐÖÐÎÄ£¬ÔÚ·þÎñÆ÷¶Ë½ÓÊÕ²ÎÊýÖµÊÇÂÒÂë
½â¾ö·½·¨£º
PHP:
·þÎñÆ÷¶Ë£ºiconv("UTF-8","gb2312",$_POST[±äÁ¿Ãû]);
JSP:
¿Í»§¶Ë:
ÀûÓÃjavascriptµÄÌṩµÄescape()»òencodeURI()·½·¨, Àý
var url="a.jsp?name=СÀî"£»
url=encodeURI(url);
url=encodeURI(url); //Á½´Î£¬ºÜ¹Ø¼ü[¾ßÌåΪʲô£¬ÎÒÒ²²»Çå³þ ......

´´½¨ajaxÖеÄxmlhttprequest¶ÔÏó

<html>
<body>
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
catch (e)
    {
  // Inte ......

AJAXÖÐDragPanelExtenderÀ©Õ¹¿Ø¼þ


Ò³Ãæ´úÂ룺
<head runat="server">
    <title>ÎÞ±êÌâÒ³</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManage ......

Ajax µÄ״̬½éÉÜ

ÔÚ¡¶Pragmatic Ajax A Web 2.0 Primer ¡·ÖÐżȻ¿´µ½¶ÔreadyStae״̬µÄ½éÉÜ£¬¸Ð¾õÕâ¸ö½éÉܺÜʵÔÚ£¬ÕªÒëÈçÏ£º
0: (Uninitialized) the send( ) method has not yet been invoked.
1: (Loading) the send( ) method has been invoked, request in progress.
2: (Loaded) the send( ) method has completed, entire respons ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ