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

ajaxÓëjsp »ñµÃ¿Õxml½â¾ö·½·¨


AjaxºÍjspµÄ¹ÖÏÖÏó     
Èç¹ûÓÃAjaxÈ¥ÇëÇóÒ»¸öjspÒ³Ã棬¸ÃjspÒ³Ãæ·µ»ØµÄÊÇxml£¨response.setContentType("text/xml; charset=GB2312");£©£¬²¢ÇÒ¸Ãjsp°üº¬ÏÂÃæÕâЩͷ@pageÖ¸ÁîµÄ»°£¬ÔòÔÚ¿Í»§¶Ëxml=XMLHttpRequest.responseXMLµÃµ½µÄÊÇÒ»¸ö²»°üº¬ÈÎÎñ¶«Î÷µÄxml¶ÔÏ󣬼´xml.childNodes.length½«»áÊÇ0.
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.suntek.notes.sql.DBGrid"%>
<%@ page import="java.util.Vector" %>
Ô­ÒòÊÇÒÔÉϵÄ@pageÖ¸Áî(ÆäʵÊÇÈκÎÒ»¸öÖ¸Áî)»á²úÉú¿ÕÐС£¼´ÔÚjspÀï±ßµÄout.print(xml)µ½¿Í»§¶ËµÄ֮ǰ£¬ÒѾ­ÓпÕÐÐÊä³öÁË¡£½â¾ö°ì·¨¿ÉÒÔÊÇÈ¥µôÉÏÃæµÄÓï¾ä£¬»ò°Ñjsp¸ÄΪservlet
ͬʱ£¬jspÀï±ßµÄÈκοÕÐж¼ÓпÉÄܻᵼÖÂͬÑùµÄÎÊÌâ¡£
Ó¦¸ÃÓÃservlet½ÏºÃ¡£


Ïà¹ØÎĵµ£º

ÓÃC#´´½¨XML[¼òµ¥´úÂë]

XmlDocument doc = new XmlDocument();
XmlDeclaration dec = doc.CreateXmlDeclaration("1.0", "GB2312", null);
doc.AppendChild(dec);
//´´½¨Ò»¸ö¸ù½Úµã£¨Ò»¼¶£©
XmlElement root = doc.CreateElement("First");
doc.AppendChild(root);
//´´½¨½Úµã£ ......

java¶ÁÈ¡xml¼¸ÖÖ·½·¨

  1£©DOM£¨JAXP Crimson½âÎöÆ÷£©
   
DOMÊÇÓÃÓëƽ̨ºÍÓïÑÔÎ޹صķ½Ê½±íʾXMLÎĵµµÄ¹Ù·½W3C±ê×¼¡£DOMÊÇÒÔ²ã´Î½á¹¹×éÖ¯µÄ½Úµã»òÐÅϢƬ¶ÏµÄ¼¯ºÏ¡£Õâ¸ö²ã´Î½á¹¹ÔÊÐí¿ª·¢ÈËÔ±ÔÚÊ÷ÖÐÑ°ÕÒ
Ìض¨ÐÅÏ¢¡£·ÖÎö¸Ã½á¹¹Í¨³£ÐèÒª¼ÓÔØÕû¸öÎĵµºÍ¹¹Ôì²ã´Î½á¹¹£¬È»ºó²ÅÄÜ×öÈκι¤×÷¡£ÓÉÓÚËüÊÇ»ùÓÚÐÅÏ¢²ã´ÎµÄ£¬Òò¶øDOM±» ......

ajax³£¼ûÎÊÌâ×ܽá


ÔÚ¿´ÎÄÕÂÇ°£¬ÏÈÖ¸¶¨Ò»¸öͨÓõıäÁ¿xhr£¬xhr´úÂëajax¶ÔÏó¡£
²âÊÔä¯ÀÀÆ÷£ºieΪie6£¬firefoxΪ2£¬ÆäËûµÄδ²âÊÔ¡£Í³³Æie6Ϊie£¬firefox2Ϊff¡£
»ù±¾µÄ
1£¬×î¾­µäµÄ¾ÍÊÇieϵĻº´æÎÊÌâÁË¡£
Èç¹ûʹÓõÄÊÇget£¬ÄÇôÔÚieϳöÏÖ»º´æÎÊÌâ¡£µ¼Ö´úÂëÖ»Ö´ÐÐÒ»´Î¡£½â¾ö°ì·¨¾ÍÊǼÓʱ¼ä´Á»òÕßËæ»úÊý£¬Ê¹url±äΪΨһ£¬ÕâÑù¾Í²»»á³öÏÖ ......

Microsoft AJAX Library

Microsoft AJAX Library
Microsoft AJAX Library[ÏÂÔØ]ÊÇ΢ÈíΪASP.NETµÄAJAX¹¦ÄÜÌṩµÄ¿Í»§¶ËJavascriptÀ©Õ¹Àà¿â¡£ËäÈ»ÊÇΪASP.NET±àдµÄ£¬µ«Í¬ÑùÊÊÓÃÓÚÆäËûÓïÑÔ¡£ ÓëÈç½ñ±»¹ã·ºÊ¹ÓõÄprototype¡¢jqueryµÈAJAXÀà¿âÏà±È£¬Microsoft AJAX LibraryLÁé»îÐÔ¿ÉÄܲ»×㣬¶øÇÒҲûÓÐÆäËûÀà¿â"Çá"£¬Èçprototy ......

asp.netµÄXMLͨÓòÙ×÷Àà

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Syste ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ