I am doing some maintenance on a js tree control that was done with
proprietary IE code.
When I click on a node it calls a function which has code similar to
that below to expand the tree. "el" refers to the div that I clicked
on.
var workHtml = el.innerHTML;
for (i = 0; i < idx; i++)
{
strHtml = '<div><span onclick=f_Click ("'+ idx +
'")></span></div>';
workHtml = strHtml + workHtml;
}
el.innerHTML = workHtml;
Now, this works, both in IE and FireFox, but in FireFox I get the
"Waiting... "
message in the status bar at the bottom of the frame.
Is there something more I should add? Or should I have used another
approach rather than innerHTML? (I'm replacing the proprietary
insertAdjacentH TML).
Thanks
proprietary IE code.
When I click on a node it calls a function which has code similar to
that below to expand the tree. "el" refers to the div that I clicked
on.
var workHtml = el.innerHTML;
for (i = 0; i < idx; i++)
{
strHtml = '<div><span onclick=f_Click ("'+ idx +
'")></span></div>';
workHtml = strHtml + workHtml;
}
el.innerHTML = workHtml;
Now, this works, both in IE and FireFox, but in FireFox I get the
"Waiting... "
message in the status bar at the bottom of the frame.
Is there something more I should add? Or should I have used another
approach rather than innerHTML? (I'm replacing the proprietary
insertAdjacentH TML).
Thanks
Comment