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

Ajax¼¶Áª²Ù×÷

      WebÏîÄ¿ÖÐ×ÜÊÇ»áÓõ½Òì²½²Ù×÷£¬ÏÖÔÚµÄÒì²½²Ù×÷¿ÉÒÔÓø÷ÖÖ¸÷ÑùµÄ¿Ø¼þÀ´ÊµÏÖ£¬µ«ÊµÏÖÔ­Àí»¹ÊÇÒ»ÑùµÄ£¬±¾È˸üϲ»¶Ê¹ÓÃ×îԭʼµÄAjax²Ù×÷ȥʵÏÖÒì²½´¦Àí£¬±¾ÎĽöÏ׸øÄÇЩϲ»¶ÊµÏÖAjaxºÍÏîÄ¿ÖÐÒªÓõ½AjaxµÄÅóÓÑ¡£
      AjaxʵÏÖÔ­Àí¾ÍÊÇ¿Í»§¶Ëͨ¹ýjavascript²Ù×÷µ÷Ó÷þÎñÆ÷¶Ë²Ù×÷£¬²¢´¦Àí·þÎñÆ÷·µ»Ø½á¹û£¬Í¬Ê±±£Ö¤ÁËÓû§²Ù×÷µÄÒ³Ãæ²»³öÏÖˢвÙ×÷¡£
      ÏÂÃæµÄʵÏÖÊÇÒ»¸öʵÏÖÁËÊ¡ÊÐÇøÏؼ¶Áª²Ù×÷µÄʵÀý£º
ËùÔÚ³ÇÊУº<select name="province" class="input font12" onchange="refreshList(this.options[this.selectedIndex].value,'city');">
<%
Sql = "select * from s_province t order by provcode asc"
Set Rs = Conn.execute(Sql)
Dim i,provcode,citycode,areacode
i=1
Do while not Rs.eof
provcode = Rs("provcode")
If i=1 Then
Response.write "<option value="""&Rs("provcode")&""" selected>"&Rs("provname")&"</option>"
Else
Response.write "<option value="""&Rs("provcode")&""" >"&Rs("provname")&"</option>"
End If
i = i+1
Rs.movenext
Loop
Rs.Close
Set Rs = nothing
%>
</select>

<select name="city" id="city" class="input font12" onchange="refreshList(this.options[this.selectedIndex].value,'area');">
<%
SQL = "select * from s_city t Where t.provcode='"&provcode&"'"
Set Rs = Conn.execute(Sql)
i = 1
Do while not Rs.eof
If i=1 Then citycode = Rs("citycode")
Response.write "<option value="""&Rs("citycode")&""">"&Rs("cityname")&"</option>"
i = i+1
Rs.movenext
Loop
Rs.Close
Set Rs = nothing
%>
</select>
<select name="area" id="area" class="input font12" onchange="refreshList(this.options[this.selectedIndex].value,'street');">
<%
SQL = "select * from s_area t Where t.citycode=


Ïà¹ØÎĵµ£º

Ajax»º´æ½â¾ö°ì·¨

ÏîÄ¿ÓÐʱҪÓÃһЩAjaxµÄЧ¹û£¬ÒòΪ±È½Ï¼òµ¥£¬Ò²¾ÍûÓÐÈ¥ÓÃʲôAjax.netÖ®ÀàµÄ¶«Î÷£¬ÊÖд´úÂëÒ²¾ÍʵÏÖÁË¡£¡¢
µÚ¶þÌ죬ÓÐÈËÏòÎÒ±¨¸æ´íÎó£»ËµÊÇÖ»ÓеÚÒ»´Î¶ÁÈ¡µÄÖµÕý³££¬ºóÃæµÄÖµ¶¼²»Õý³££»ÎÒµ÷ÊÔÁËһϠ£¬È·ÊµÓÐÕâÑùµÄÎÊÌ⣬²é³öÊÇÒòΪAJAX»º´æµÄÎÊÌ⣺½â¾ö°ì·¨ÓÐÈçϼ¸ÖÖ:
       1¡¢ÔÚ·þÎñ ......

jquery+ajaxʵÏÖÎÞË¢ÐÂÌá½»µÄ¹¦ÄÜ

   <script type="text/javascript" src="jquery-1.3.2.min.js" mce_src="js/jquery.js"></script>  
   <input name="writer" id="writer" type="text" value="" />  
   <input name="pass" id="pass" type="password" value="" />  ......

Ajax£ºÍ¨ÍùÐÂÊÀ½çµÄΰ´óº½µÀ

AjaxÈ«³ÆΪ“Asynchronous JavaScript and XML”£¨Òì²½JavaScriptºÍXML£©£¬ÊÇÒ»ÖÖ´´½¨½»»¥Ê½ÍøÒ³Ó¦ÓõÄÍøÒ³¿ª·¢¼¼Êõ¡£¸ù¾ÝAjaxÌá³öÕßJesse James Garrett½¨Ò飬Ëü£º
ʹÓÃXHTML+CSSÀ´±íʾÐÅÏ¢£»
ʹÓÃJavaScript²Ù×÷DOM£¨Document Object Model£©½øÐж¯Ì¬ÏÔʾ¼°½»»¥£»
ʹÓÃXMLºÍXSLT½øÐÐÊý¾Ý½»»»¼°Ïà¹Ø²Ù×÷£»
Ê ......

AJAXÒ²Óа²È«Òþ»¼ ̸̸AJAXµÄ°²È«ÐÔ

Web¿ª·¢Õß²»»á×¢Òâµ½ÓÉ “AJAX(Asynchronous JavaScript And
XML)”Ëù´øÀ´µÄ¼¤Çé¡£²»·ÑÁ¦Æø¾ÍÄÜ´´½¨ÏñGoogle
SuggestÄÇÑùµÄÖÇÄÜÍøÕ¾»òÕßÏñGmailÄÇÑù»ùÓÚWebµÄÓ¦ÓóÌÐò£¬ÕâÔںܴó³Ì¶ÈÉÏÒª¹é¹¦ÓÚÕâÖÖ¼¼Êõ¡£È»¶ø£¬°éËæ×ÅAJAXÓ¦ÓóÌÐòµÄ·¢Õ¹£¬ÎÒÃÇ·¢
ÏÖÁËËüµÄһЩ²»×ãÖ®´¦£¬ÎÒÃÇ·¢ÏÖËüµÄ°²È«Â©¶´Ò²ÔÚÖð½¥±ä´ó£¬¾ÍÏ ......

[JavaScript]×ÔÒÑдµÄÒ»¸öAJAXÇëÇó£¢À࣢

¡¡¡¡ºÜ¶àÈ˶¼ÓùýAJAX¿Ø¼þ°É£¬AJAX¿Ø¼þ²»ÐèҪˢÐÂÒ³Ãæ¾Í¿ÉÒÔµ½ºǫ́ȥ¶Á³öÊý¾Ýµ½¿Í»§¶Ë£®AJAX¿Ø¼þ³ýÁËÓкÜìŵÄÌØЧÍ⣬ÆäÒª¹¦ÄܾÍÊDz»ÐèҪˢÐÂÕû¸öÒ³Ãæ¾Í¿ÉÒÔÈ¡µÃÓû§ËùÐèÒªµÄÊý¾Ý£¬ÎÒ°ÑÕâÒ»¿éµÄµÄ¹¦ÄÜ·â×°³ÉÒ»¸öÀ࣬·½±ãÈÕºó¿ÉÒÔÖظ´Ê¹Ó㬴úÂëÈçÏ£º
   //Ajax Request Class Start
  functio ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ