Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : ajax

ASP.NETÀïµÄÒ»¸öAJAXµÄ´íÎó


ÎÒµÄÒ³ÃæÀïÓõÄAJAX¿Ø¼þ µ«Ò³Ãæ¾²Ö¹Ò»¶Îʱ¼ä¾Í»á³öÏÖÉÏÃæµÄÒ»¸ö´íÎóÊÇÔõô»áÊÂѽ Ôõô½â¾ö°¡
¸ßÊÖ°ï°ïæ°¡

½«ÏîÄ¿Éϼ¶Ä¿Â¼ÖеÄÖÐÎÄÃû³ÆÈ«²¿¸Ä³ÉÓ¢ÎÄ

Â¥ÉÏ˵µÄºÜÇå³þÁË¡£°ï¶¥Ò»Ï°É

Õâ¸öÎÊÌâ²»ÊǺܳ£³öÏÖ ÎÒÒ²²»ÖªµÀʲôÇé¿ö»á³öÏÖ Ôõô²âÊÔ°¡

ÎÒÕâÀï²»´æÔÚÖÐÎÄÃû

ÿÌì»ØÌû¼´¿É»ñµÃ10·Ö¿ÉÓ÷֣¡

......

¹ØÓÚAJAXºÍPHPµÄ½»»¥

¿Í»§¶ËÓÃAJAX·¢Ë͹ýÀ´Ò»¸ö×Ö·û´®£¬Ï£ÍûÔÚ·þÎñÆ÷¶ËÓÃxmlÐÎʽ½âÎö³öÀ´£¬¸ÃÔõô×ö°¡£¿£¡
±ÈÈçÎÒ·¢¹ýÀ´µÄ
querystring = " <request> <uid>2008 </uid> </request>"

ÔÚ·þÎñÆ÷¶ËÔõôȡµÃ
uid = 2008 ÄØ£¡
¿ÉÒÔpost»òget·¢ËÍ

        var url = & ......

ajaxµ÷ÓõÄphpÒ³Ãæ³ö´í£¬µ«ÊÇûÓзµ»Ø´íÎóÐÅÏ¢¡£

ÎÒµÄÒ»¸öjs·½·¨Í¨¹ýjqueryµÄµ÷ÓÃajaxµ÷ÓÃmyajax.phpÒ³Ãæ,myajaxÒ³Ãæͨ¹ýinclude°üº¬ÁËÁíÒ»¸ö´¦ÀíÇëÇóµÄphpÒ³Ãæ(a.php),
¶øa.phpÒ³ÃæÖÐÒ»µ©ÓдíÎó£¬ÔÚµ÷ÓõÄÒ³ÃæȴûÓдòÓ¡³ö´íÎóÐÅÏ¢£¬Èç¹ûÖ±½Ó·ÃÎÊa.phpÔò»á´òÓ¡³ö¾ßÌåµÄ´íÎóÐÅÏ¢£¬²»ÖªµÀͨ¹ýajaxΪʲô»á²»´òÓ¡´íÎó¡£

ûÓÐ

Èç¹ûÒª´òÓ¡³ö´íÎóÈçºÎ´òÓ¡£¿ÎÒÔÚÕâ¸öҳà ......

Ajax WebServive·½·¨´«µÝʹÓÃjavascript±äÁ¿µÄÎÊÌâ

function Fun1(para1,para2)
{
  Fun2(para1);
  ....
  ÒªÇóÊÇ:Ôڵõ½ajax·½·¨µÄ·µ»ØÖµºó£¬
  ÔÙʹÓÃpara2(para2ÊÇÒ»¸öjavascript±äÁ¿)

  ÎÊÌâ¾ÍÊÇ£¬
  Ôõô´«µÝpara2,
  ÒòΪµÃµ½ajax·½·¨µÄ·µ»ØÖµÊÇÔÚOnAjaxFun·½·¨ÖеÄ

}
function Fu ......

Ajax WebServive·½·¨´«µÝʹÓÃjavascript±äÁ¿µÄÎÊÌâ

function Fun1(para1,para2)
{
  Fun2(para1);
  ....
  ÒªÇóÊÇ:Ôڵõ½ajax·½·¨µÄ·µ»ØÖµºó£¬
  ÔÙʹÓÃpara2(para2ÊÇÒ»¸öjavascript±äÁ¿)

  ÎÊÌâ¾ÍÊÇ£¬
  Ôõô´«µÝpara2,
  ÒòΪµÃµ½ajax·½·¨µÄ·µ»ØÖµÊÇÔÚOnAjaxFun·½·¨ÖеÄ

}
function Fu ......

ajaxÏê½âµÄÒÉÎÊ

µÚ14Õ µÄÊ÷ÐͲ˵¥µÄÀý×Ó²»ÄÜÔÚIEÖÐÕý³£ÏÔʾ£¨Ê÷µÄ½á¹¹¿ÉÒÔÕ¹¿ª£¬µ«Õ¹¿ªºóÔÙµã»÷¾Í²»ÄÜÊÕËõÁË£©£¬µ«ÄÜÔڹȸèä¯ÀÀÆ÷ÖÐʹÓã¬Óп´´ËÊéµÄÅóÓÑÄÜÖ¸µãÏÂÂð£¿
ºÃÌù ºÇ

dfgfgfgffffff


лл¡£
......
×ܼǼÊý:837; ×ÜÒ³Êý:140; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [131] [132] [133] [134] [135] [136] [137] 138 [139] [140]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ