table.response = function(text){
this._rows = text.split(/\r*\n/);
if (!this._rows[this._rows.length-1]){
this._rows.pop(); // remove the last line if empty
}
var i, s, rows = [], a = text.split(/\r*\n/);
for (i=0; i<a.length; i++) {
if (a[i]) {
rows[i] = new Array(a[i].substr(0,10), a[i].substr(11,11), a[i].substr(27,1), a[i].substr(29,14), a[i].substr(44,a[i].length));
}
}
this._data = rows;
if (this.$owner) {
this.$owner.clearScrollModel();
this.$owner.clearSelectedModel();
this.$owner.clearSortModel();
this.$owner.clearRowModel();
this.$owner.setRowCount(this.getCount());
this.$owner.refresh();
}
};
This topic is archived.