<html>
<head>
<title>grid diplay</title>
<link rel="stylesheet" type="text/css" href="activewidgets/runtime/styles/xp/aw.css">
<script language="JavaScript" src="activewidgets/runtime/lib/aw.js"></script>
<script language="JavaScript">
var myCells = [
["MSFT","Microsoft Corporation", "314,571.156"],
["ORCL", "Oracle Corporation", "62,615.266"]
];
var myHeaders = ["Ticker", "Company Name", "Market Cap."];
// create grid object
var obj = new AW.UI.Grid;
//alert("obj is"+obj);
// assign cells and headers text
obj.setCellText(myCells);
obj.setHeaderText(myHeaders);
// set number of columns/rows
obj.setColumnCount(3);
obj.setRowCount(2);
// write grid to the page
document.write(obj);
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<title>grid diplay</title>
<link rel="stylesheet" type="text/css" href="test2/src/runtime/styles/xp/aw.css"></link>
<script language="JavaScript" src="test2/src/runtime/lib/aw.js"></script>
<script language="JavaScript">
var myCells = [
["MSFT","Microsoft Corporation", "314,571.156"],
["ORCL", "Oracle Corporation", "62,615.266"]
];
var myHeaders = ["Ticker", "Company Name", "Market Cap."];
// create grid object
var obj = new AW.UI.Grid;
//alert("obj is"+obj);
// assign cells and headers text
obj.setCellText(myCells);
obj.setHeaderText(myHeaders);
// set number of columns/rows
obj.setColumnCount(3);
obj.setRowCount(2);
// write grid to the page
document.write(obj);
</script>
</head>
<body>
</body>
</html>
This topic is archived.