Huge bug (I think) in Active.HTML.INPUT
If you create any type of Active.HTML object like a DIV or SPAN or BUTTON and do a setContent('some content') the object gets the text like you would expect. If you do the same thing on an INPUT object, the text gets placed on the parent not in the INPUT object. If you check the content with getContent('html'), the object has the value in the correct place so why is it showing up in the wrong place? Here is a sample to show the problem.
I have this problem if I use a document.write or if I try and stuff the information into another Active.HTML object. Everything seems to work fine except the INPUT object.
Thanks
<SCRIPT type="Text/javascript" src="grid.js" ></SCRIPT>
<body style="padding:0;margin:0">
<script type="text/javascript">
d1 = new Active.HTML.INPUT;
d1.setStyle('width', 150);
d1.setStyle('left', 100);
d1.setStyle('top', 100);
d1.setStyle('position', 'absolute');
d1.setContent('html', 'test content');
document.write(d1);
</script>
</body>
I have this problem if I use a document.write or if I try and stuff the information into another Active.HTML object. Everything seems to work fine except the INPUT object.
Thanks
Jim Hunter
January 6,