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

ajax select Ìí¼Óoption ¿Õ°×

 ½ñÌ춯̬Ìí¼Óoptionµ½selectlʱ£¬³öÏÖÁËÌí¼ÓºóoptionΪ¿Õ°×£¬¸öÊýÈ´ÕýÈ·µÄÇé¿ö¡£´úÂëÈçÏ£º
for(var i = 0; i < results.length; i++) {
        oOption = document.createElement("OPTION");
        oOption.value=results[i].childNodes[0].text;
        oOption.text=results[i].childNodes[1].text;
        tabcodelist.appendChild(oOption);
    }
ÔÚÍøÉÏÕÒÁ˰ëÌ죬ҲûÕÒµ½½â¾ö°ì·¨£¬ºóÀ´¾­¹ý×Ðϸ·ÖÎö£¬ºÍÒÔǰµÄ´úÂë¶Ô±È£¬·¢ÏÖÕâÒ»ÐÐtabcodelist.appendChild(oOption);Óë
ÒÔǰµÄ´úÂë²»Ò»Ñù£¬ÒÔǰÓõÄÊÇadd·½·¨¶ø²»ÊÇappendChild·½·¨¡£¸Ä³ÉaddºóÎÊÌâ½â¾ö£¬°¦£¬ÕâôСµÄÒ»¸öÎÊÌâÀË·ÑÁ˰ëÌì¾¢¡£JavaScriptÕæÊDz»ºÃÓã¬Ì«²»ÈÝÒ×ÕÒ´íÁË¡£


Ïà¹ØÎĵµ£º

´«ÖDz¥¿ÍAjaxÊÓÆµºó¼¯ÊÓÆµËæ±Ê

 ===============ÏÂÆ­Ajax
================
ʮһ¡¢µÚʮһ¿Î   ===¡· ʹÓÃXHR¶ÔÏó·¢ËͺͽÓÊÜÊý¾Ý
a.¼ÌÐøÉÏÃæ²½Öè
2)×¢²á»Øµ÷º¯Êý,ֻдº¯ÊýÃû³Æ(Èç¹û¼ÓÁËÀ¨ºÅ£¬ÄÇô¾Í°Ñº¯Êý·µ»ØÖµ×¢²á¸ø»Øµ÷º¯Êý)
xmlHttp.onreadystatechange = callback;
3)ÉèÖÃÁ¬½ÓÐÅÏ¢
//µÚÒ»²ÎÊýÊÇHttpÇëÇó·½Ê½£¬Ò»°ãÑ¡Ôñget¡¢pos ......

΢ÈíÐû²¼AJAX CDN

 Ô­ÎĵØÖ·¡¿Announcing the Microsoft AJAX CDN
¡¾Ô­ÎÄ·¢±íÈÕÆÚ¡¿ Tuesday, September 15, 2009 11:46 PM
½ñÌìÔçЩʱºò£¬ASP.NET¿ª·¢ÍŶÓÍÆ³öÁËÒ»¸öеÄ΢ÈíAjax CDN£¨Content Delivery Network£¬ÄÚÈÝ·Ö·¢ÍøÂ磩·þÎñ£¬¸Ã·þÎñÌṩÁ˶ÔAJAX¿â£¨°üÀ¨jQuery ºÍ ASP.NET AJAX£©µÄ»º´æÖ§³Ö¡£¸Ã·þÎñÊÇÃâ·ÑµÄ£¬²»ÐèÈκÎ×¢² ......

³õʶAjax¼¼Êõ1

Ò» ÒýÌâ
ÈçºÎÈÃweb³ÌÐòÓÃÆðÀ´Ïñ×ÀÃæÓ¦ÓóÌÐòÒ»Ñù¼òµ¥£»
ÅÖ¿Í»§¶Ë£¿Êݿͻ§¶Ë£¿ÈçºÎÑ¡Ôñ£¿-----¿´ÐèÇ󣬿´Óû§µÄʹÓã¬Áé»îµ÷½Ú¡£
²»ÒªÉÁ˸£¬¿Õ°×Ò³³öÏÖ£¿
 
¶þ ³õʶAjax
1.    AjaxÊÇÒ»¸ö¿Í»§¶Ë¼¼Êõ£¬²»ÂÛÄãÏÖÔÚʹÓúÎÖÖ·þÎñÆ÷¶Ë¼¼Êõ£¬¶¼ÄÜʹÓÃAjax£¬¶ø²»¹ÜʹÓõÄÊÇJava¡¢.NET¡¢Ruby¡¢PHP»¹ÊÇCGI¡ ......

VS2005 ʹÓÃAJAXÖ±½Óµ÷Óúǫ́·½·¨

Ê×Ïȶ¼ÊÇʹÓÃVS.Net2005´´½¨Ò»¸ö ASP.Net AJAX-Enabled Web Application
 1¡¢Ê¹ÓÃAJAXÖ±½Óµ÷Óúǫ́·½·¨£º
ºǫ́´úÂ룺
namespace AJAX1
{
    public partial class _Default : System.Web.UI.Page
    {
        // ÐèÒª±êʶΪWebMethod ......

AjaxµÄ¼òµ¥Ó¦ÓÃ

ǰ̨´úÂ룺
<head runat="server">
    <title>ÎÞ±êÌâÒ³</title>
    <script src="Ajax.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div&g ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ