Yes I tried JSON laterly, and it works so greatly.
On Fri, Feb 20, 2009 at 5:30 AM, akzhan <akzhan.abdu...@gmail.com> wrote: > > How to reproduce this problem? > > By the way, Json format is more attractive way for data exchange (Json > included into core or additional modules of all known Web server > platforms)... > > On 20 фев, 12:02, Samuel <samuel.yh...@gmail.com> wrote: > > Is there any solutions for this? I have a similar problem. > > > > I've added mimetype="text/xml" in Django's views.py > > > > It works well on firefox, opera and chrome, but not working on all IE > > browsers, and the webkit kerneled browser on adroid. > > > > Thanks for your helps. > > > > > > > > > > > > On Sat, Feb 14, 2009 at 9:26 PM, cindy <ypu01...@yahoo.com> wrote: > > > > > Hi, all, > > > > > I have used following code to parse XML file, it works very well for > > > firefox, but not for IE. Can any one told me why and solution ? > > > Thanks! > > > > > (rXml).find("wired_port").each(function() > > > { > > > var o=new Object(); > > > o.port=$("number",this).text(); > > > o.mac_address=$("mac_addr",this).text(); > > > > > var enabled=$("enable",this).text(); > > > var > > > interface_status=$("interface_status",this).text(); > > > var link_status=$("link_status",this).text(); > > > > > if(link_status==1) > > > o.status ="Connected"; > > > else if(interface_status == 1) > > > o.status = "Link Down"; > > > else if (enabled== 0) > > > o.status = "Disabled"; > > > else > > > o.status = "Error"; > > > > > var speed=$("speed",this).text(); > > > var auto_neg=$("auto_neg",this).text(); > > > > > if(auto_neg==1) > > > o.speed=speed+"(auto)"; > > > else > > > o.speed=speed; > > > > > var duplex=$("duplex",this).text(); > > > if(duplex==0) > > > o.duplex_type="Half"; > > > else > > > o.duplex_type="Full"; > > > > > o.fwd_mode=rap_util.formatFwdMode($("fwd_mode",this).text()); > > > o.wired_port_empty=""; > > > o.user=$("user_count",this).text(); > > > > > o.tx_packets=rap_util.formatPackets($("tx_packets",this).text()); > > > > > o.rx_packets=rap_util.formatPackets($("rx_packets",this).text()); > > > wiredPorts.push(o); > > > }); > > > > -- > > Samuel Wu > -- Samuel(吴焱红)