Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FF continually working after removing a dynamic hidden iframe

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why you are driving Firefox out of its mind, but why aren't you just using Ajax for this?
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by Ajax? HTTPXML? I'm trying to avoid using ActiveX for some security reason.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic