1,105,226 Community Members

changing the way Internet Explorer.

Member Avatar
AMANDAInJS
Newbie Poster
4 posts since Apr 2006
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Microsoft is changing the way ActiveX controls work in Internet Explorer. :eek: it affects any Flash movie (SWF) content in a web page.

i found one solution its working fine with some .swf file , if .swf file contain some actions scripts then code makes problems , pls any one can help me, code is attached here with

<!--[if gte IE 6]>
<script src="dynActiveX.js"></script>
<![endif]-->
// When the page loads:
window.onload = function(){
  if (document.getElementsByTagName) {
    // Get all the tags of type object in the page.
      var objs = document.getElementsByTagName("object");
      for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag
        // and replace it with itself.
        objs[i].outerHTML = objs[i].outerHTML;
      }
   }
}
// When the page unloads:
window.onunload = function() {
  if (document.getElementsByTagName) {
    //Get all the tags of type object in the page.
    var objs = document.getElementsByTagName("object");
    for (i=0; i<objs.length; i++) {
      // Clear out the HTML content of each object tag
      // to prevent an IE memory leak issue.
      objs[i].outerHTML = "";
    }
  }
}
Member Avatar
vectart
Newbie Poster
1 post since Nov 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I have a similar problem.
But your code not helps to me.

Did you found new solution?

Member Avatar
ko ko
Practically a Master Poster
673 posts since Jan 2009
Reputation Points: 97 [?]
Q&As Helped to Solve: 152 [?]
Skill Endorsements: 1 [?]
 
0
 

Line 9 and 21. objs[i].outerHTML Replace 'outerHTML' with 'innerHTML'.
I did not test and I am not sure it work not. You should post this thread in the Javascript forum.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article