Works as I expect in mozilla 1.4, ns6.2 and IE 6 and IE5 but not netscape 4.7
[win or linux].
Under ns47 I get a small bar about where I expect the template to draw.
<html>
<!-- $Id: index.html,v 1.8 2003/08/14 11:00:30 jason Exp $ -->
<head>
<style type="text/css">
DIV.title { text.align: center; font-weight: bold; color: green }
EM { text.align: center; font-weight: bold; color: blue }
DIV.ExtensionCommandStack { background: #FFFFFF }
DIV.ExtensionCommandStack { background: #FFFFFF }
</style>
<title>Testing dynamic table growth.</title>
<Script language="Javascript" src="dynapi3x/src/dynapi.js"></Script>
<Script language="Javascript">
dynapi.library.setPath('dynapi3x/src/')
dynapi.library.include('dynapi.library');
dynapi.library.include('dynapi.api');
dynapi.library.include('TemplateManager');
dynapi.library.include('HTMLListbox');
dynapi.library.include('HTMLButton');
dynapi.library.include('HTMLTextBox');
dynapi.library.include('BorderManager');
dynapi.library.include('HTMLContainer');
function AutoTable(html,x,y,w,h,color,image,addField,parent) {
this.tmpl = new Template(html,x,y,w,h,color,image);
this.tmpl.setAutoSize(true);
this.nextField = addField;
this.count = 0;
this.parent = parent;
this.parent.addChild(this.tmpl);
}
AutoTable.prototype.addRow = function(html) {
var nextName = '' + this.nextField + '' + this.count;
this.count++;
this.tmpl.addField(nextName,this.nextField,html);
this.nextField = nextName;
}
DynAPI.onLoad(init);
function init()
{
}
</Script>
<Script language="Javascript" src="autotable.js"></Script>
</head>
<body>
<script language="javascript">dynapi.document.insertAllChildren();</script>
<script language="javascript">
var tableHtml = '<TABLE BORDER="1"
WIDTH="100%"><THEAD><TR><TH>User</TH><TH>Type</TH><TH>Device</TH><TH>Number</TH><TH>Time</TH><TH>Priority</TH><TH>Trust</TH><TH>Timeout</TH></TR><TBODY>[EMAIL
PROTECTED]</TABLE>';
var table = new AutoTable( tableHtml, 10,
100,null,null,'#EEEEEE',null,'ROWS',dynapi.document );
table.addRow( "<TR><TD>Jason</TD><TD>Home</TD><TD>SIP</TD><TD>2415</TD></TR>"
);
</script>
</body>
</html>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help