3.2.0

Moderator of this site.plz help.AW not defined error

Hi all,
any one of u plz help me 2 go futhure.I want 2 display a grid when html page loads.I m using Eclipse IDE and tomcat webserver.I have error called AW not defined.

My application directory structure is

test2
|-->activewidgets(this folder contains the extract of ActiveWidget

zip file)

My code is as below.Help me plz. a small advise may help




<html>
<head>
<title>grid diplay</title>

<link rel="stylesheet" type="text/css" href="test2/activewidgets/runtime/styles/xp/aw.css">


<script language="JavaScript" src="test2/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>
sushma
October 14,

This topic is archived.

See also:


Back to support forum