·þÎñÓÚajaxµÄ¿ØÖÆÆ÷·½·¨
´Ë·½·¨ÓÃjspÄÚÖöÔÏóoutÊä³öµ½xmlÎļþÖÐ
public void ajaxEditorList() throws IOException{
HttpServletResponse response = ServletActionContext.getResponse();
//System.out.println("ddddddddddddddddddddddd;;;");
int unitid=Integer.parseInt(request.getParameter("unitid"));
//System.out.println("unitid:"+unitid);
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
request.setCharacterEncoding("GBK");
response.setCharacterEncoding("GBK");
unitinfolist=adminUnitInfoService.getKangarooUnitinfoListByunitid(unitid);
response.setContentType("text/xml");
PrintWriter out = response.getWriter();
out.print("<?xml version=\"1.0\" encoding=\"GBK\"?>");
out.print("<unitinfoes>");
if(unitinfolist==null||unitinfolist.isEmpty()){
out.print("<isempty>");
out.print("true");
out.print("</isempty>");
}else{
out.print("<isempty>");
out.print("false");
out.print("</isempty>");
for(KangarooUnitinfo ui:unitinfolist){
out.print("<unitinfo unitinfoid=\""+ui.getInfoid()+"\">");
out.print("<unitid>"+ui.getUnitid()+"</unitid>");
out.print("<title>"+ui.getTitle()+"</title>");
out.print("</unitinfo>");
}
}
out.print("</unitinfoes>");
out.flush();
out.close();
}
Ïà¹ØÎĵµ£º
AJAX
ÊÇweb2.0
µÄ»ùʯ£¬ÏÖÔÚÍøÉÏÁ÷Ðм¸ÖÖ¿ªÔ´µÄAJAX¿ò¼Ü£¬±È
È磺jQuery,Mootools,Dojo,Ext JSµÈµÈ£¬ÄÇôÎÒÃǵ½µ×ÔÚʲôÇé¿öϸÃʹÓÃÄǸö¿ò¼Ü£¿ÒÔÏÂÊÇÒ»×éÕª³µÄÊý¾Ý£º
AjaxianÔÚ2007Äêµ×¶ÔAjax¹¤¾ß½øÐÐÁ˵÷²é£¬²¿·Öµ÷²é½á¹û¼ûÏÂ±í£¨ÆäÖÐÊý×ÖΪµ÷²éÕßʹÓøù¤¾ßµÄ°Ù·Ö±È£¬ÏêϸµÄÇë²Î¼ûÍøÒ³£©£ºhttp://ajaxian.com/archi ......
ÕâÁ½Ìì¸Õ½â¾öÁËajax¶àä¯ÀÀÆ÷¼æÈݵÄÎÊÌ⣬Ö÷Òª¾ÍÕë¶ÔFirefoxµÄ£¬¿ªÊ¼»¹ÒÔΪFirefox²»Ö§³ÖajaxÄØ£¨±ðЦÎÒѽ£¬²»ÔõôÁ˽âFirefoxҲûÓùý£¬ºÇºÇ£©£¬¶à¿÷¿´ÁËÏÂÃæµÄÎÄÕ²ÅÈÃÎÒÁ˽âajaxµÄÊÊÓ÷¶Î§¡£ÆäʵֻҪ·ûºÏw3cµÄ±ê×¼¾Í¿ÉÒÔÔÚFirefoxµÈÕâЩä¯ÀÀÆ÷ÉÏÕý³£ÏÔʾ£¬ËùÒÔ»¹ÊÇÓ¦¸ÃºÃºÃÁ˽âÒ»ÏÂw3cµÄ±ê×¼¹æÔòѽ¡£²»¹ýÒª½ ......
ÃèÊö:Ajax»ù´¡ ÔÚ½øÐÐAjax¿ª·¢ÒÔǰ£¬ÎÒÃDZØÐëÏȶÔһЩ»ù±¾µÄ֪ʶ½øÐÐÁ˽⡣ËäÈ»Ajax.NETÒѾ½«AjaxʵÏÖϸ½Ú·â×°ÆðÀ´£¬²¢´ó´ó¼ò»¯
Ajax»ù´¡
ÔÚ ½øÐÐAjax¿ª·¢ÒÔǰ£¬ÎÒÃDZØÐëÏȶÔһЩ»ù±¾µÄ֪ʶ½øÐÐÁ˽⡣ËäÈ»Ajax.NETÒѾ½«AjaxʵÏÖϸ½Ú·â×°ÆðÀ´£¬²¢´ó´ó¼ò»¯ÁËÎÒÃǵIJÙ×÷£¬µ«ÊÇÁ˽â»ù ±¾µÄAjaxʵÏÖ·½Ê½¶ÔÓÚ°ïÖúÎÒÃÇÔÚ¿ª·¢ÖÐ ......
¡¡¡¡µ½´ËΪֹ£¬Äã¿ÉÄÜÒѾעÒâµ½£¬Ê¹ÓÃAjax±à³ÌʱÓкܶàÂ鷳ʡ£Èç¹ûÄãÒªÖ§³Ö¶à¸öä¯ÀÀÆ÷£¨ÏÖÔÚ»¹ÓÐËÖ»Ö§³ÖÒ»¸öä¯ÀÀÆ÷ÄØ£¿£©£¬ÎÞÒÉ»áÔâÓö²»¼æÈÝÎÊÌâ¡£µ¥¿´Ò»¸ö¼òµ¥µÄ¶¯×÷£¬±ÈÈç˵´´½¨XMLHttpRequest¶ÔÏóµÄÒ»¸öʵÀý£¬ÕâÐèÒªÏȽøÐÐä¯ÀÀÆ÷²âÊÔ¡£Ò»µ©¿ªÊ¼³¢ÊÔʹÓÃAjax¼¼Êõ£¬ÄãºÜ¿ì¾Í»á×¢Òâµ½Òª·´¸´µØÍê³ÉͬÑùµÄһЩÈÎÎñ¡£µ±È»£¬ ......
ASP.NET 2.0 AjaxÖÐÄܹ»ÔÚ¿Í»§¶ËjsÖкܷ½±ãµØµ÷Ó÷þÎñÆ÷Webservice£¬ÒÔÏÂΪһЩµ÷ÓõÄʾÀý¡£±ÊÕß°²×°µÄASP.NET 2.0 AJAX
°æ±¾ÎªAJAX November CTP¡£
Èý¸öʾÀý·Ö±ðΪ£º
1 ´ø²ÎÊýµÄWS·½·¨
2 ²»´ø²ÎÊýµÄWS·½·¨
3 ²ÎÊýÀàÐÍΪDataTableµÄWS·½·¨
Ò»¡¢WebMethod
×¢ÒâÒªµã£º
1 WebMethodÀàÐèÒªÌí¼ÓÃüÃû¿Õ¼ä Microsoft.Web. ......