Data problem - trying to fix
Ok, I have an XML file.
It has in it at getData(0,i), something like "T01"
But I need it to be just "1"
I was triyng to do it this way:
table.request();
table.response1 = table.response;
table.response = function(xml) {
this.response1(xml);
var i, rowCount = this.getCount(), orgValue="";
for (i=0; i< rowCount; i++) {
orgValue = this.getData(0,i);
orgValue = orgValue.substring(1);
alert(orgValue);
this.setData(0, i) = orgValue;
}
}
The end return is that I need it to be a numerical value for sorting purposes (but I need to display it as "T01" ... mny probably is that now we can have "T101" - this throwing off the sorting ability.
Any ideas?
It has in it at getData(0,i), something like "T01"
But I need it to be just "1"
I was triyng to do it this way:
table.request();
table.response1 = table.response;
table.response = function(xml) {
this.response1(xml);
var i, rowCount = this.getCount(), orgValue="";
for (i=0; i< rowCount; i++) {
orgValue = this.getData(0,i);
orgValue = orgValue.substring(1);
alert(orgValue);
this.setData(0, i) = orgValue;
}
}
The end return is that I need it to be a numerical value for sorting purposes (but I need to display it as "T01" ... mny probably is that now we can have "T101" - this throwing off the sorting ability.
Any ideas?
Carl
January 14,