Applet initialization problem
DOM manipulations in a web application may cause the applets in the application to reinitialize. Sometimes this can be annoying because the reinitialization causes the applet to lose its state.
- Changing the display style of an applet or a parent of the applet to any value other than "none" causes the applet to reinitialize in Firefox and Chrome. This change does not cause any problems in IE. Cross browser support was essential to us so I ended up changing the visibility or width&height attributes of the applet to hide it instead of setting its style.
- Reinserting an applet or a parent of the applet to any position in the DOM tree causes the applet to reinitialize in IE, Firefox, and Chrome. In IE it's reinitialized both when removing from and inserting into the DOM tree.
- Changing overflow style of a parent of the applet causes the applet to reinitialize. This behavior is only observable in Firefox.
You can download the source code which demonstrates these issues from here.
M. Serdar Biçer