Skip Links

Ensuring embedded content still works in Internet Explorer

Dr. Internet By Steve Blass, Network World
April 10, 2006 12:06 AM ET
Steve Blass

I understand that Internet Explorer is being changed to disable the functionality of the object, embed and applet tags in HTML documents. How can I make sure our embedded content still works the way we want it?

You can replace the embedded content lines in your HTML files with JavaScript that calls code outside the HTML page to write the tags that are being disabled in HTML. To replace one instance of embedded content you can create an external JavaScript file that uses document.write commands to create the same lines that you're replacing in the HTML file with the call to the external script. For example, you would replace

<object classid="clsid:deadbeef..."><param name="src" value="" /></object>


<script type="text/javascript" src="fixit.js" language="JavaScript"></script>

and then you would create a JavaScript file named "fixit.js" containing document.write statements that reproduce the embedded content code previously contained in the HTML file. For large numbers of pages with embedded content, you can create external JavaScript files that use parameters passed in when you call the script to generate the HTML code. Then you can replace the disallowed sections of the HTML files with the JavaScript calls using the parameters to identify specific content.

Examples and instructions for this workaround are here. More information is also available from Microsoft.

Read more about software in Network World's Software section.

Our Commenting Policies
Latest News
rssRss Feed
View more Latest News