3.2.0

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
April 15,

This topic is archived.

See also:


Back to support forum