3.2.0

AW not defined

Hi,


I wanted a datagrid to display in html page when it is loaded.I have used the example code given in this site as it is. I have downloaded activewidget3 version and copied the folder named Runtime to my src folder.

directory structure is


test2
|src
|Runtime


but when i deploy this application and load the html page an error is displayed. Error is AW is not defined. Kindly tell me what might be the problem.

My code is as shown below



<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>grid diplay</title>



<script src="/src/runtime/aw.js"></script>
<link href="/src/runtime/aw.css" rel="stylesheet"></link>

</head>

<body>
<script>

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;

// 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>

</body>
</html>


Kindly advise

regards
swich
swich
October 14,

This topic is archived.

See also:


Back to support forum