Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2010
    Location
    Seattle
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    text disappears when placed after an object in IE

    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:
    Code:
    <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
    &autostart=truevolume=50'/>
    <br/>
    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,
    ~gyz

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,200
    Thanks
    75
    Thanked 4,342 Times in 4,308 Posts
    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.

    e.g.,
    Code:
    <param name='movie' value='jwplayer/player.swf' />
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New Coder
    Join Date
    Aug 2010
    Location
    Seattle
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    *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!

    ~gyz


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •