Take the 2-minute tour ×

I'm trying to insert a video player plugin into the DOM using an object. This works fine with Firefox and Chrome, however I get a "no such interface supported" message from IE 8 and IE 7. The plugin works fine in all three if it's in the HTML file the server sends out.

Here is what I'm trying to create:

<object id="plugin" width="220" height="360" type="application/x-ourmediaplayer"  
  <param name='mode' value='LIVE' />  
  <param name="ip_address" value='' />  
  <param name='port' value='80' />  

If I use the following code I get the error on IE:

var container = document.getElementById('pluginContainer');  
var plugin = document.createElement('object');  
plugin.id = 'plugin';  
plugin['width'] = '220';  
plugin['height'] = '360';  
plugin['type'] = 'application/x-ourmediaplayer'>

var param = document.createElement('param');  
param['name'] = 'mode'; param['value'] = 'LIVE'; plugin.appendChild(param);

param = document.createElement('param');  
param['name'] = 'ip_address'; param['value'] = '';
plugin.appendChild(param);    `

param = document.createElement('param');  
param['name'] = 'port'; param['value'] = '80'; plugin.appendChild(param);


Does anyone have any ideas? Can I do this with IE, or is there some other way of appending an object of this type?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Might be too late, but I've seen this same error in a variety of cases. It is probably nothing wrong with your code. It is most likely a problem with the installation of IE, registration of some DLLs. In this thread somebody pointed to some scripts which fix IE, here.

Another site, specifies:


I hope that can help you.

share|improve this answer
add comment

I don't know for sure, but I'm guessing that it's a IE's mishandling of the object tag. Consider looking at the source for SWFObject for some ideas on how to fix it.

share|improve this answer
Maybe I missed it, but I didn't see anything to help me in in the SWFObject source. Thanks for responding though. –  anotherdjohnson Feb 16 '11 at 17:11
add comment

Your Answer


