:: Forum >>
Don't get AW.Grid.Extended
What's wron in the code? The image is shown=> Path is correct
<html>
<head>
<title>Test</title>
<!-- fix box model in firefox/safari/opera -->
<style type="text/css">
.aw-quirks * {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
</style>
<!-- include links to the script and stylesheet files -->
<script src="runtime/lib/aw.js" type="text/javascript"></script>
<!-- page/controls styles -->
<style type="text/css">
body {font: menu}
p {margin: 10px 0px 5px 0px}
td {vertical-align: top}
#objGrid {width: 400px; height: 100px}
</style>
</head>
<body>
><img src="runtime/lib/logo2.gif" alt="Test">
<p>Extended Grid (fixed columns & footer):</p>
<span id="objGrid"></span>
<!-- AW controls script -->
<script type="text/javascript">
var objGrid = new AW.Grid.Extended;
objGrid.setCellText("cell");
objGrid.setHeaderText("header");
objGrid.setColumnCount(10);
objGrid.setRowCount(10);
objGrid.setHeaderCount(2); // two header lines
objGrid.setFixedLeft(1); // fixed left column
document.write(obj);
<script>
</body>
</html>
Michael
Monday, November 3, 2008
Hi Michael,
You just missed a line like :
objGrid.setId("objGrid");
The "Id" must match the id you put in : <span id="objGrid"></span>
( but not neccessary the variable name )
var objGrid = new AW.Gr......;
HTH
Carlos
Wednesday, November 5, 2008
This topic is archived.
Back to support forum
Forum search