Menu

#242 setHTML doesn't work on an inline div inside a DynLayer

open
nobody
5
2004-11-21
2004-11-21
l0basetom
No

to reproduce, create a new DynLayer with an inline layer:

myLayer = new DynLayer
('box',0,0,100,100,'white',null,null,null,'<div id=innerbox
style="position:absolute">foo</div>');

now when you try to write to the innerbox layer you get
a javascript error:

DynAPI.document.all['innerbox'].setHTML('bar');

not sure if this is a bug or by design, or if i'm not getting
the syntax correct, but i think any layer created directly
or indirectly should be accessible to the user using
standard API calls.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.