Display attributes on DOM elements
So, we have this nasty little bug where if an applet is running in IE and it is in an element that's display is set to none, we are trying to use a Live Connect call on the applet, which ends worse than badly (the browser keeps running correctly, but you cannot close it unless you end the process via the task manager). The solution was to walk up the DOM tree from the applet tag and check all the display elements of the element and all its parents for display set to none. If any of them are none, then we do not make the Live Connect call and everyone can live happily ever after...
... Unless an element in the parent tree is set to a class with display set to none. 8( So, this is a call for help. If you know how to check if an element has inherited display none from a style sheet, I'm all ears.
UPDATE: Found the answer, the currentStyle property gives the style including the class styles. Yay Google and the Internet! 8) But mostly thanks to this JavaScript tutorial.

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home