PDA

View Full Version : Bug with java applet



outersky
9 Aug 2007, 2:32 AM
I have a page with some java applets.
then Ext will not run correctly.

because you can not test whether applet has the function or property like:


if( applet.function ) applet.function();

so I add another condition when invoke el.insertAdjacentHTML,
because Firefox think that applet as 'function' .



if(el && (typeof el == "object") && el.insertAdjacentHTML){

it's now ok!

But I think it's not a good way to resolve it.

outersky
9 Aug 2007, 2:33 AM
It's in Ext.DomHelper .

mystix
9 Aug 2007, 2:52 AM
8887

jack.slocum
9 Aug 2007, 7:55 AM
We can't predict everything you might have in the page and put workarounds in place. ext would be 2MB. It's up to you to work around specific issues in your environment.