Error on controls nested in AW.HTML.TABLE
I am testing AW.HTML.TABLE and found an error. I nested a grid into a table. When I click the grid, my browser's status bar shows "Error on page". The following is my test code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="../runtime/styles/xp/aw.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../runtime/lib/aw.js"></script>
</head>
<body>
<form id="form1" runat="server">
<script>
var grid=new AW.UI.Grid;
grid.setHeaderText(["test1","test2"]);
grid.setColumnCount(2);
grid.setRowCount(1);
var table = new AW.HTML.TABLE;
var row = new AW.HTML.TR;
var cell = new AW.HTML.TD;
cell.setContent("html", grid);
row.setContent("cell1", cell);
table.setContent("row", row);
document.write(table);
</script>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="../runtime/styles/xp/aw.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../runtime/lib/aw.js"></script>
</head>
<body>
<form id="form1" runat="server">
<script>
var grid=new AW.UI.Grid;
grid.setHeaderText(["test1","test2"]);
grid.setColumnCount(2);
grid.setRowCount(1);
var table = new AW.HTML.TABLE;
var row = new AW.HTML.TR;
var cell = new AW.HTML.TD;
cell.setContent("html", grid);
row.setContent("cell1", cell);
table.setContent("row", row);
document.write(table);
</script>
</form>
</body>
</html>
mrhsh
April 30,