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

dhtmlxtreeÓÃAjaxˢмÓÔØXML

     ºÜ¾ÃÒÔÇ°£¬ÎÒѧ»áÁËÓÃdhtmlxtree£¬ÄÇÊÇÒ»¿ÃºÜ²»´íµÄÊ÷£¬ÓÃÆðÀ´ºÜ·½±ã£¬µ«ÊÇÒ»¸öÎÊÌâһֱûÓнâ¾ö£¬´ÓÇ°¶¼ÊǷֺܶà´ÎÈ¥Êý¾Ý¿âÖв飬×ñÑ­µÄÔ­ÔòÊÇ£¬ÏȲé³öÉϼ¶£¬È»ºóÔÙ¸ù¾ÝÉϼ¶ID²é³öϼ¶ID£¬ÕâÑùÒ»²ãÒ»²ãµÄ²é£¬ÓÚÊǵ±Êý¾ÝÁ¿´óÁË£¬Ê÷¼ÓÔصÄʱºò»áºÜµÄºÜÂý£¬ÓÐʱºòµÈËû¿ªÊ¼¼ÓÔصÄʱºò£¬¿ÉÒÔ¸æËßÆÁĻǰµÄÈËÔ±£¬“Äú¿ÉÒÔÑ¡ÔñÈ¥²éºÈ±­¿§·È»òÕß³öÈ¥¹ä¹äÔÙ»ØÀ´£¬ÒòΪÐèÒªºÜ¾Ã”£¬¶ÙʱÎÞÓï¡£
    Êý¾Ý¿âÊÇÕâÑùÉè¼ÆµÄ£º
    ID    Ãû³Æ     Éϼ¶ID
    1      A        
    2      B       
    3      C        1
    4      D        1
    ……
   ʹÓÃdhtmlxtreeµÄ·½·¨(×Ô¼º²é¿´API)£º
  µÚÒ»²½£º¼ÓÔØJS,CSS,ÆäÖаüÀ¨dhtmlxcommon.js,dhtmlxtree.js,dhtmlXTreeExtend.js,dhtmlxtree.css
  µÚ¶þ²½£ºÐ´ÈëHTML£¬ÈçÏÂ
  <table width="100%" class="searchTable">
  <tr><td class="searchTdTitle">·ÖÀàÌåϵ½á¹¹</td>
  </tr>
  <tr>
    <td class="lefttree"><a href="javascript:void(0);" onclick="tree.openAllItems(0);">Õ¹¿ª</a>&nbsp;&nbsp;&nbsp;
      <a href="javascript:void(0);" onclick="tree.closeAllItems(0);">ÊÕ£</a></td>
  </tr>
  <tr>
    <td class="lefttree"><div id="treeboxbox_tree" class="dhtmlxTree" style="width:230px;"></div></td>
  </tr>
</table>
 <script>
  tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);//³õʼ»¯Ê÷
  tree.setImagePath("<%=path %>/skins/blue/common/dhtmlx/images/c


Ïà¹ØÎĵµ£º

AjaxÎÞË¢·ÖÒ³

jsÎļþ:
var where=" where pd_Isjifen=0 and pd_Isok=1"; //²éѯÌõ¼þ
var psize=16; //²éѯÊý¾ÝÊýÄ¿
var pindex=0;//µ±Ç°Ò³Êý
var order=" order by pd_Update desc,type_sort,pd_brand,pd_typeid"; //ÅÅÐòÌõ¼þ
var temp=0; //Ä£°åÃû³Æ
var Pcount=0;

//»ñÈ¡²ÎÊý
function getUrlPara(p ......

AJAX ³õѧ(ת)

ÕâÁ½ÌìÒ»Ö±ÔÚÂñÍ·¿àÁ·AJAX¼¼Êõ£¬ËäÈ»ÍøÉ϶ÔAJAXµÄ¿´·¨¸÷Óкûµ£¬ÔÚÎÒ¿´À´AJAX¶ÔÎÒÀ´Ëµ»¹ÊÇÒ»¸öºÜ²»´íµÄ¼¼Êõ£¬ËüÔںܴóµÄ³Ì¶ÈÉϼõÇáÁË·þÎñÆ÷µÄ¸ºµ££¬°ÑһЩ¼òµ¥µÄrequestͨ¹ýÀûÓÃjavascript·½·¨´´½¨Ò»¸öXMLHttpRequest¶ÔÏó·¢ËͺͽÓÊÕ·þÎñÆ÷µÄÐÅÏ¢£¬²»ÒªÍ¨¹ýË¢ÐÂÒ³Ãæ¾ÍÄܵõ½×Ô¼ºÏëÒªµÄЧ¹û£¬Õâ¼òÖ±ÊDz»¿É˼Òé¡£ÏÂÃæ¸ø³öÒ»¶ÎA ......

AjaxµÄjs·â×°

function send_request(callback, urladdress, isReturnData){     
        var xmlhttp = getXMLHttpRequest();
        xmlhttp.onreadystatechange = function(){
       &nb ......

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

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

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

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