Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
FireFox and JavaApplets in a Ajax/PHP based application.
Old 02-24-2006, 12:29 PM FireFox and JavaApplets in a Ajax/PHP based application.
Junior Talker

Posts: 1
Trades: 0
Hi,

I have an problem, it is related to a CMS system that submits a form and written text in an java WYSIWYG editor.
To close the form (remove the form from the screen) we clear the HTML content of this screen area. For this we use the following javascript code in our PHP application:

area.innerHTML = "";

The area is an object that contains the form. When we run this command and this area contains a java applet - the browser crashes. This happens with ALL browsers. In order to avoid a browser crash we need to destroy/close the java applet first. After this the above code works fine without any issues. In order to destroy the java applet we use the following code:

area.style.display = "none";

So we have the following lines of code

area.style.display = "none";
area.innerHTML = "";

In all browsers including the old versions of the FireFox browser the second command is executed only after the first command is completed (java applet is destroyed). In the new version of FF the second command is executed before the first command is fully completed that cause the browser to crash.

This is complete describe of the issue we have. If I could get some tips or suggestions that would help me to destroy the java applet this would solve the issue. There is one suggestion I foresee that can't be applied: use setTimeout function to emulate pause. The code execution can't be stopped using this function in our system without serious modifications of code.

I think I forgot a mayor detail to explain my reason. This is a application that uses Ajax technologies, particular Json-rpc. Therefore if you submit the info in the editor and it loads the list of created items, it does not actually load a new page but uses json to plug in the new content. But each time the java applet need to be closed and this crashes the browser in the new version of FF.

Best wishes,
Thom
Thomanji is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2006, 02:24 PM Re: FireFox and JavaApplets in a Ajax/PHP based application.
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
style.display will only show/hide the element, not remove it.

try using removeChild()

http://www.quirksmode.org/dom/w3c_core.html
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to FireFox and JavaApplets in a Ajax/PHP based application.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11124 seconds with 12 queries