$.ajax({ url: "order/order_orderDetail.do?params.type=merge", type : "post", data : params, success : function(xml) { hide(); if(xml == ""){ Dialog.popTip("Cannot find the order that needs to be merged", 2); }else{ var myTable=document.getElementById( "t_product" ); //Traverse the "ORDER" node $(xml).find('ORDER').each(function(){ var id = $(this).find("ORDERID").text (); var status = $(this).find("STATUS").text();
if(xmlHttp.readyState ==4){ if(xmlHttp.status ==200){ hide(); var xml = xmlHttp.responseXML; if (xml == null){ Dialog.popTip("Cannot find the order that needs to be merged", 2); }else{ var myTable=document.getElementById("t_product" ); var orders = xml.getElementsByTagName("ORDER"); for(var i=0;ivar order = orders[i]; var id = order .getElementsByTagName("ORDERID")[0].childNodes[0].nodeValue; var status =order.getElementsByTagName("STATUS")[0].childNodes[0].nodeValue; alert(status) ; if(status == "1"){ status="Unconfirmed"; }else{ status="Confirmed"; } var newRow = myTable.insertRow(); var oCell = newRow.insertCell(); oCell.setAttribute("height","25"); oCell.innerHTML=" "; oCell = newRow .insertCell(); oCell.innerHTML="*Order" The status of id " is: " status ", the product status is as follows "; oCell = newRow.insertCell(); oCell.innerHTML=" "; oCell = newRow.insertCell(); oCell.innerHTML=" ";
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn