# I have a BETTER FIX for the IE Embed/Object Problem

**URL:** <https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370>\
**Category:** random\
**Created:** [April 20, 2006, 8:25pm UTC](https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370 "2006-04-20T20:25:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriskalani](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@chriskalani](https://forum.kirupa.com/u/chriskalani)\
**Post date:** [April 20, 2006, 8:25pm UTC](https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370/1 "2006-04-20T20:25:08Z")

</div>

It is as simple as this:

**In your head put:**

[FONT=Courier]\<!–[if IE]\>  
\<script defer=“defer” src=“iefixes.js” type=“text/javascript”\>\</script\>  
\<![endif]–\>

[/FONT]

**In ‘iefixes.js’ put:**

[FONT=Courier]var objects = document.getElementsByTagName( ‘object’ );  
for ( var i = 0; i \< objects.length; i++ )  
objects[i].outerHTML = objects[i].outerHTML;[/FONT]

yay! it is good because you just add code instead of changing existing code. and it works like a dream.

---

<div class="post-metadata">

**Author:** ![955](https://avatars.discourse-cdn.com/v4/letter/9/4bbf92/32.png) [@955](https://forum.kirupa.com/u/955)\
**Post date:** [April 20, 2006, 8:30pm UTC](https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370/2 "2006-04-20T20:30:03Z")

</div>

This might not work forever though - it could be construed as a bug 😉

---

<div class="post-metadata">

**Author:** ![chriskalani](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@chriskalani](https://forum.kirupa.com/u/chriskalani)\
**Post date:** [April 20, 2006, 8:31pm UTC](https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370/3 "2006-04-20T20:31:32Z")

</div>

Well kirupa’s doesn’t work for me at all in FF… and for some clients it doesn’t work in IE at all either!

This one does.

---

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [April 21, 2006, 1:44am UTC](https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370/4 "2006-04-21T01:44:58Z")

</div>

Thats just the same as what MS says to do. Embed the objects using external js. All you did was check to see if the browser was IE. Whats so different about that? :huh:

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [April 21, 2006, 2:12am UTC](https://forum.kirupa.com/t/i-have-a-better-fix-for-the-ie-embed-object-problem/186370/5 "2006-04-21T02:12:49Z")

</div>

^Probably to correct the errors people were getting with FF. This way it wont effect the regular FF people. I really dont know javascript though.
