Page 1 of 1

ie trouble: dynamic. embedded content not showing

Posted: Sun Feb 13, 2011 5:19 pm
by marcelcolt
Hi,

I have a major irritating issue, i've trying to deal with for over a week now.

I'm making a sort of lightbox-thingie (jQuery-ed) supporting other sorts of embedded content.
Now showing images is no problem.
But when i try to display something like flash, pdf or a video, IE8 doesn't display it.
In other major browsers it works fine.

This is the HTML (appended dynamically):

Code: Select all

<object id="alightObject">
	<param id="param1">
	<param id="param2">
	<param id="param3">
	<param id="param4">
	<embed id="alightEmbed"></embed>
</object>
The javascript for embedding the content is like this:

Code: Select all

jQuery('#alightObject').attr({type: 'application/x-shockwave-flash', data: 'the_retrieved_URL'});
jQuery('#param1').attr({name: 'movie', value: 'the_retrieved_URL'});
jQuery('#param2').attr({name: 'quality', value: 'best'});
jQuery('#alightEmbed').attr({src: objectArray, type: 'application/x-shockwave-flash'});
all used parameters are variables passed on by another function.

As seen in IE's developer-tool and FireBug, all data is used correctly, all is shown as it should be.
Adding 'quality' to the embed-tag doesn't work.
When tested directly in the html-body all works well, even when using MS' own dynamic embed-methode (using document.write).
Even without a MIME-type!

Can anybody tell me what i'm doing wrong?

Check the site here:
http://www.serelsnauw.nl/users/marcel/s ... d)/aLight/