The problem occurs in the DynLayer's setHTML
function. In addition to this error displaying in my
widget I'm currently writing, I have also recieved the
error consistently in the dynapi.gui.list widget.
From what I can tell the error seems to be only when I
move from one layer to another, because if I move from
the layer to the documents background I do not recieve
the error. I'm probably a mid-level javascript
developer, and not having a good enough knowledge of
the DynAPI's core files I'm really stumped. One thing
I did however try that cleared up the problem was
removing all of the HTML from the string that was
being passed into the function, this definitely fixed
the problem but is obviously not an acceptable fix.
Just thought the experts might have an answer or fix
for me. All your help is appreciated.
Logged In: NO
As far as I can see this is caused by setting the
font color in the mouseout event of the list items:
ListItem.listevents.onmouseout = function (e) {
var o = e.getSource();
if (!o.selected && o.isMouseOver) {
o.setBgColor(o.itemStyle.bgcolor);
o.setFontColor(o.itemStyle.textNormal);
}
o.isMouseOver = false;
};
Change the line
o.setFontColor(o.itemStyle.textNormal);
to:
o.font.color =
o.itemStyle.textNormal;
and the errors are gone (on Macintosh)