p.listbox.appendChild( listcols );
/*if (window.navigator.userAgent.match( /Firefox/ ))*/ {
- sdump('D_FIREFOX','Kludge: Adding extra listheader and listcol\n');
+ //sdump('D_FIREFOX','Kludge: Adding extra listheader and listcol\n');
var listheader = p.w.document.createElement('listheader');
listhead.appendChild( listheader );
listheader.setAttribute('label', '');
}
/* if (window.navigator.userAgent.match( /Firefox/ )) */ {
- sdump('D_FIREFOX','Kludge: Setting label on listitem\n');
+ //sdump('D_FIREFOX','Kludge: Setting label on listitem\n');
listitem.setAttribute('label',' ');
}
}
p.clear_rows = function () {
- while( p.listbox.getRowCount() > 0 ) { p.listbox.removeItemAt(0); }
+ var count = p.listbox.getRowCount();
+ for (var i = 0; i < count; i++) {
+ p.listbox.removeChild( p.listbox.lastChild );
+ }
+ alert('pause');
}
return p;
return grid;
}
- function gen_timeout_add_row( cols, mbts ) {
- return function() { p.list_box.add_row( cols, { 'record_id' : mbts.id() } ) };
- }
-
var obj_string ='mbts';
- setTimeout( function(){p.list_box.clear_rows();}, 0 );
+ setTimeout(
+ function() {
+ //p.list_box.clear_rows();
for (var i = 0; i < bills.length; i++) {
}
cols.push( listcell );
}
- setTimeout( gen_timeout_add_row( cols, mbts), 0);
+ p.list_box.add_row( cols, { 'record_id' : mbts.id() } );
}
+ }, 0
+ );
}