(I hope this is enough info!)
function LoadXML(){
var xmlord= new ActiveXObject("Microsoft.XMLDOM"
xmlord.async = "false";
xmlord.load('
if(xmlord.parseError.errorCode != 0){
window.alert("No such Reference file! Retry "
;
return false;}
nodes = xmlord.documentElement.childNodes;
var numLots = xmlord.documentElement.childNodes.length-1;
for (i = 0; i < numLots ; i++)
{
var xLinenum = Linenum.nextNode;
var xBl = Bl.nextNode;
var xKg = Kg.nextNode;
var xDe = De.nextNode;
var xCa = Ca.nextNode;
var xSt = St.nextNode;
var xM = M.nextNode;
var xV = V.nextNode;
var xYl = Yl.nextNode;
var xMm = Mm.nextNode;
var xPo = Po.nextNode;
var xNk = Nk.nextNode;
var xCo = Co.nextNode;
var xCt =Ct.nextNode;
var xOt = Ot.nextNode;
// Calculations are performed here on the information
// approx 3 pages of code to perform the math calcualtions
// output as text boxes on the HTML page?
xBl.text + ' ' + xKg.text etc
}
}
}
I have a XML document that I read into memory as I read it into memory I then calculate the information and derive a value from the data stored in the XML document. As the information is read and processed I wish to output the data and the calculated result into text boxes for the user to view and for further processing and manipulation.
I am stuck and unable to think of a method to dynamically create text boxes with unique names to store my information.
Can some one point in the right direction?
function LoadXML(){
var xmlord= new ActiveXObject("Microsoft.XMLDOM"
xmlord.async = "false";
xmlord.load('
if(xmlord.parseError.errorCode != 0){
window.alert("No such Reference file! Retry "
return false;}
nodes = xmlord.documentElement.childNodes;
var numLots = xmlord.documentElement.childNodes.length-1;
for (i = 0; i < numLots ; i++)
{
var xLinenum = Linenum.nextNode;
var xBl = Bl.nextNode;
var xKg = Kg.nextNode;
var xDe = De.nextNode;
var xCa = Ca.nextNode;
var xSt = St.nextNode;
var xM = M.nextNode;
var xV = V.nextNode;
var xYl = Yl.nextNode;
var xMm = Mm.nextNode;
var xPo = Po.nextNode;
var xNk = Nk.nextNode;
var xCo = Co.nextNode;
var xCt =Ct.nextNode;
var xOt = Ot.nextNode;
// Calculations are performed here on the information
// approx 3 pages of code to perform the math calcualtions
// output as text boxes on the HTML page?
xBl.text + ' ' + xKg.text etc
}
}
}
I have a XML document that I read into memory as I read it into memory I then calculate the information and derive a value from the data stored in the XML document. As the information is read and processed I wish to output the data and the calculated result into text boxes for the user to view and for further processing and manipulation.
I am stuck and unable to think of a method to dynamically create text boxes with unique names to store my information.
Can some one point in the right direction?