ie trouble: dynamic. embedded content not showing
Posted: Sun Feb 13, 2011 5:19 pm
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):
The javascript for embedding the content is like this:
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/
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>
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'});
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/