aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes FF continually working after removing a dynamic hidden iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "FF continually working after removing a dynamic hidden iframe" Watch "FF continually working after removing a dynamic hidden iframe" New topic
Author

FF continually working after removing a dynamic hidden iframe

D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

I use hidden dynamically created iframe to get some additional data from server in JS, so after processing the data I remove the iframe. I noticed that a browser hangs in working state if I remove the iframe. Code looks like:

However not removing iframe can issue accumulating too many iframes and overloading browser resources. Using static hidden frame possible but not desirable. How do you solve the problem? I found some work around but it looks a bit crazy for me, so I want something more reasonable.

IE implementation is a bit different and doesn�t create mentioned problem anyway.


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

I don't know why you are driving Firefox out of its mind, but why aren't you just using Ajax for this?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

What do you mean by Ajax? HTTPXML? I'm trying to avoid using ActiveX for some security reason.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

Well, the firefox implementation of XHR doesn't use activex. What security problems (besides the fact that it's IE) are you trying to avoid by not using the activex XHR on IE?
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Currently I use 3 browsers Opera, FF, and IE. The last has activex turned off. Certainly underneath implementation of server calling mechanism can use different approaches on different browsers, however I�d like to see it more consistent from esthetical point view.

Anyway, I can live with a work around I found. thank you for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FF continually working after removing a dynamic hidden iframe