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

AjaxÎÞË¢ÐÂÏÂÔØ Çë¸÷λ´óϺÃÇ°ï°ïæ°¡~

<script language="javascript">
  var XMLHttpReq;
  var cont=true;
//´´½¨XMLHttpRequest¶ÔÏó     
    function createXMLHttpRequest() {
if(window.XMLHttpRequest) { //Mozilla ä¯ÀÀÆ÷
XMLHttpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // IEä¯ÀÀÆ÷
try {
XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
}
  function sendPackaging(prjid)
{
    alert(prjid);
    createXMLHttpRequest();
        var url = 'http://localhost:8080//p//front//ZipProject?prjid='+prjid;
XMLHttpReq.open("GET", url,"_self");
XMLHttpReq.onreadystatechange = getPackaging;//Ö¸¶¨ÏìÓ¦º¯Êý
XMLHttpReq.send(null);
}
function getPackaging()
{
alert(XMLHttpReq.readyState);
if (XMLHttpReq.readyState == 4) { // Åж϶ÔÏó״̬
        if (XMLHttpReq.status == 200) { // ÐÅÏ¢ÒѾ­³É¹¦·µ»Ø£¬¿ªÊ¼´¦ÀíÐÅÏ¢
            } else { //Ò³Ãæ²»Õý³£
                window.alert("ÄúµÄÇëÇóÓÐÒì³£");
&n


Ïà¹ØÎÊ´ð£º

ajaxÔõôʵÏÖÐÂÔöÏÂÀ­ÁбíÎÞˢР- Web ¿ª·¢ / Ajax

ajaxÔõôʵÏÖÐÂÔöÏÂÀ­ÁбíÎÞˢС£ÀàËÆ
http://hi.baidu.com/comasp/blog/item/aa34e736bfc269320a55a9ad.html¡£
»¹ÓÐÍøÒ×163Blog£¬Ìí¼Óblogʱ£¬Èç¹ûдµÄÎÄÕÂûÓкÏÊʵķÖÀà¿ÉÑ¡£¬¿ÉÒÔµã»÷Ìí¼ÓеÄÎÄÕÂÀàÐÍ£¬È»ºóÌ ......

¹ØÓÚÊ¡ÊÐÁª¶¯ ajaxÈ¡ÖµÎÊÌâ

ÔÚÓÃÊ¡ÊÐÁª¶¯µÄʱºò£¬¸ù¾ÝÊ¡È¡ÊУ¬ÊÐÊÇͨ¹ýajaxÈ¡³öÀ´µÄ£¬Óúǫ́´úÂëÈ´ÎÞ·¨»ñÈ¡dropdownlistÖÐÊеÄÑ¡ÖÐÏîÖµ£¬Õâ¸ö¸ÃÔõô´¦Àí£¿
Request.Form["ÄãµÄdropdownlist id"]

Request["dropdowlist2" ......

asp.net Ajax ¶¯Ì¬Éú³Édropdownlist

ÓÐÒ»¸ö±í channel
ID fatherID Name 
1 0 a
2 0 b
3 2 bb
4 3 bbb
  .
  .
  .
ʵÏÖÑ¡Ôñ¸ùĿ¼ Èç2 ÅжÏÊÇ·ñÓÐ×ÓĿ¼ ÈôÓÐÔòÉú³Édrop ......

Çë½ÌAjaxµÄÓ÷¨

ÈçÌâ
ÄÄÖֵġ£ajax.dlla\ajaxpro.dll
´«Í³Ð´·¨¾ÍÊÇxmlhttphandle»¹ÊÇajax×é¼þ£¿

http://download.csdn.net/source/652519
È¥ÕâÀï¿´¿´°É£¬Ö÷ÒªÊÇÕë¶Ô²ËÄñºÍÐÂÊֵģ¬Èç¹ûÊǸßÊÖ¾ÍÁíµ±±ðÂÛÁË

×î¼òµ¥µÄ....
ÍÏ ......

ajaxµäÐÍÓ¦ÓÃ

ÄÄλÐÖµÜÓС¶Õ÷·þasp.net2.0 ajaxµäÐÍÓ¦Óá·Õâ±¾ÊéµÄ¹âÅÌ×ÊÁÏ°¡£¬Óеû°´«ÎÒÒ»·Ý£¬ÎÒÈ¥¿ÌÅÌÁË»¹Ñ§Ð£¡£ÒòΪÎÒ°ÑѧУͼÊé¹ÝµÄ¹âÅÌÕÛ¶ÏÁË£¬ÏÖÔÚÒª¸øѧУÅâÒ»ÕÅ¡£
¶î¡£¹âÅÌ×ÊÁϺÜÄÑÕÒ°¡

¶î¡£¡£Ã»ÓÐŶ

ÓÐÐֵܸøÎÒ· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ