No text after a widget
I have downloaded ActiveWidgets and am running on Fedora 3 Firefox.
I took the advertised example and it works. I added text before and after the widget. The text "HELLO" before the widget appears. The text "GOODBYE" after the widget does not appear. What am I doing wrong.
Any help would be most welcome.
Peter
<html>
<head>
<style> body, html {margin:0px; padding: 0px; overflow: hidden;}
</style>
<!-- ActiveWidgets stylesheet and scripts -->
<link href="/var/www/license.pg-consultants.com/ActiveWidgets/runtime/styles/classic/grid.css" rel="stylesheet" type="text/css" />
<script src="/var/www/license.pg-consultants.com/ActiveWidgets/runtime/lib/grid.js"></script>
<!-- grid format --> <style>
.active-controls-grid {height: 100%; font: menu;}
.active-column-0 {width: 80px;} .active-column-1 {width: 200px; background-color: threedlightshadow;}
.active-column-2 {text-align: right;}
.active-column-3 {text-align: right;}
.active-column-4 {text-align: right;}
</style>
<!-- grid data -->
<script>
var myData = [
["<a href=\"http://ftp.gnu.org\">gnu</a>","<a href=\"http://www.yahoo.com\">yahoo</a>", "314,571.156", "32,187.000", "55000"],
["ORCL", "Oracle Corporation", "62,615.266", "9,519.000", "40650"],
["KNM", "Konami Corporation (ADR)", "3,710.784", ".000", "4313"] ];
var myColumns =
[ "Ticker", "Company Name", "Market Cap.", "$ Sales", "Employees" ];
</script>
</head>
<body>
HELLO1
<script>
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid; // set number of rows/columns
obj.setRowCount(3);
obj.setColumnCount(5); // provide cells and headers text
obj.setDataText(function(i, j){return myData[i][j]});
obj.setColumnText(function(i){return myColumns[i]});
// set click action handler
obj.setAction("click", function(src){window.status = src.getProperty("item/text")});
// write grid html to the page
document.write(obj);
</script>
GOODBYE
</body>
</html>
I took the advertised example and it works. I added text before and after the widget. The text "HELLO" before the widget appears. The text "GOODBYE" after the widget does not appear. What am I doing wrong.
Any help would be most welcome.
Peter
<html>
<head>
<style> body, html {margin:0px; padding: 0px; overflow: hidden;}
</style>
<!-- ActiveWidgets stylesheet and scripts -->
<link href="/var/www/license.pg-consultants.com/ActiveWidgets/runtime/styles/classic/grid.css" rel="stylesheet" type="text/css" />
<script src="/var/www/license.pg-consultants.com/ActiveWidgets/runtime/lib/grid.js"></script>
<!-- grid format --> <style>
.active-controls-grid {height: 100%; font: menu;}
.active-column-0 {width: 80px;} .active-column-1 {width: 200px; background-color: threedlightshadow;}
.active-column-2 {text-align: right;}
.active-column-3 {text-align: right;}
.active-column-4 {text-align: right;}
</style>
<!-- grid data -->
<script>
var myData = [
["<a href=\"http://ftp.gnu.org\">gnu</a>","<a href=\"http://www.yahoo.com\">yahoo</a>", "314,571.156", "32,187.000", "55000"],
["ORCL", "Oracle Corporation", "62,615.266", "9,519.000", "40650"],
["KNM", "Konami Corporation (ADR)", "3,710.784", ".000", "4313"] ];
var myColumns =
[ "Ticker", "Company Name", "Market Cap.", "$ Sales", "Employees" ];
</script>
</head>
<body>
HELLO1
<script>
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid; // set number of rows/columns
obj.setRowCount(3);
obj.setColumnCount(5); // provide cells and headers text
obj.setDataText(function(i, j){return myData[i][j]});
obj.setColumnText(function(i){return myColumns[i]});
// set click action handler
obj.setAction("click", function(src){window.status = src.getProperty("item/text")});
// write grid html to the page
document.write(obj);
</script>
GOODBYE
</body>
</html>
Peter Gordon
January 22,