Hi All,
In ns4 I was trying to used a <table> with a width of
100% to force text-wrapping inside a layer. The
strange thing is that after page load I created a
layer, set the HTML and then resize it but the <table>
did not adjust to the new size of the layer.
See the example:
var html='<table border="1" width="100%"><tr><td>This
is an test layer that was created after page
load</td></tr></table>';
dynapi.onLoad(function(){
var lyr = new DynLayer();
dynapi.document.addChild(lyr); // note the layer is
created here
lyr.setSize(50,100); // change the size
lyr.setHTML(html); // set layer's html
lyr.setLocation(100,100);
lyr.setSize(150,100); // change the size
};
Any ideas, any workarounds? Is this the very nature of
ns4?
PS. I noticed that the same thing occured in DynAPI
2.5
--
Raymond Irving
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
|