View Full Version : text disappears when placed after an object in IE

09-30-2011, 12:07 AM
Here's a noodle-scratcher:

I have a jwplayer in my page, and I've placed a short text describing it underneath it. Works fine in FF and Chrome, but in IE the text vanishes after you click the "Allow blocked content" permissions to allow activex controls.

This is what it looks like:

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='450' height='277'
id='single1' name='single1'><param name='movie' value='jwplayer/player.swf'><param name=
'allowfullscreen' value='false'><param name='allowscriptaccess' value='always'><param name=
'wmode' value='transparent'><param name='flashvars' value='file=myVideo.f4v&autostart=true'>
<embed id='single2' name='single2' src='jwplayer/player.swf' width='450' height='277'
allowscriptaccess='always' allowfullscreen='false' flashvars='myVideo.f4v
Here is my description text.<br/>

If I place the text above the object, then it shows up fine. I'd rather not put it there, but I can if I can't figure the problem out.

Any thoughts? Why is IE destroying my text?

Thanks as always,

Old Pedant
09-30-2011, 12:29 AM
You have no ending tag for the <object>.

The <embed ... ends with />.

But for the <object>, you need an ending </object>.

I'd guess that MSIE just keeps "absorbing" tags until it finds some reason to terminate the <object>.

Also, all your <param>s are missing the /> on the end.


<param name='movie' value='jwplayer/player.swf' />

09-30-2011, 12:36 AM
*Sigh* How did I overlook that?!
I guess it just helps to get a second pair of eyes on something once in a while.

Thanks O.P., you've schooled me yet again! :D