I am working on a growing company and doing a major redesign of a web application that reloads everything after every click to make extensive use of Javascript, so it really feels like a real web application. One of the features is to use a web artist (think of MSPaint on the Internet), which I insert on a page upon request. After the image is colored and loaded, the web application then unloads the applet and goes to the directory into which the file was downloaded.
This is where Trouble begins. It all works on IE and Safari, but not on Firefox 3.5 (3.0 works fine though). Firebug tells me that the expando property is missing.
The Tiparlo web application I worked on earlier had a similar problem (in fact, any manipulation performed on the applet via jQuery is faulty), but it solved this problem by wrapping the div and controlling (hiding and showing) the div instead of the applet. This, unfortunately, does not apply to this web application, because the applet must be destroyed, and not just hidden and shown, since it requires too many resources to run all the time when it is not needed.
To do this briefly: is it possible for the Applet to destroy itself through Javascript? Alternatively: is there a solution to the jQuery / expando / applet problem? I know that the applet is deprecated strictly in HTML 4.01, but changing it to an object is not an option now.
EDIT: I added a Firefox + Firebug image to show you the actual error message. Posting code is not a god, as it works flawlessly on every other browser and is a specific Firefox 3.5 issue. There will be pictures
Note. You can ignore the JS error coming from button.js.
source share