:: Forum >>

How do I print the elements of a table without using a grid?

<script>

var table = new Active.XML.Table;

// provide data URL
table.setURL("data/companies-simple.xml");

// start asyncronous data retrieval
table.request();

document.write('<table border="0" cellpadding="3" cellspacing="0" width="100%" height="267">');


for (i = 0; i <=table.getCount(); i++){
if (i > 0) {
document.write('<tr>');
document.write('<table.getText(i,1));
document.write('</tr>');
}

}

document.write('</table>');
document.write('Number of Records: ');
document.write(table.getCount());
</script>
RS
Friday, April 15, 2005

This topic is archived.


Back to support forum

Forum search