:: Forum >>

put normal table as header..

hi everybody, I am a new user..I have a questions about putting 'normal' table as header, and put the activewidgets table as footer..is that possible?? I give you a pic to make it clearer..

http://special.pwtorrents.net/usrimg/example.JPG

hope u guys can check the link and help me..thanks in advanced..
Oky
Monday, April 3, 2006
You can put AW grid anywhere in your page, including the cell (<TD> element) of the html table. For example, you can split your page into header, body and footer with one table, put another table into the central cell (body) and put AW grid into the footer.

<html>
<head>
    <script src="../../runtime/lib/aw.js"></script>
    <link href="../../runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<table style="height:100%;width:100%;table-layout:fixed">
<tr><td height="50">
--header--
</td></tr>
<tr><td>
--main part--
</td></tr>
<tr><td height="150">
<script>

    var obj = new AW.UI.Grid;

    obj.setStyle("width", "100%");
    obj.setStyle("height", "150px");

    obj.setCellData("cell");
    obj.setHeaderText("header");

    obj.setColumnCount(10);
    obj.setRowCount(1000);

    document.write(obj);

</script>
</td></tr>
</table>
</body>
</html>
Alex (ActiveWidgets)
Monday, April 3, 2006
thanks..good idea..
the small problem is, i created the the page in PHP, so i still have to edit something first...(alerady too lazy to do anything..)..hhehehe..
thanks ..
Oky
Monday, April 3, 2006

This topic is archived.


Back to support forum

Forum search