Skip to site navigation (Press enter)

[jQuery] IE and

Frederik Ring Wed, 04 Mar 2009 02:06:11 -0800

Hello!

If you copy paste the embed-code from a YouTube-Video like this:

<object width="425" height="344"><param name="movie" value="http://
www.youtube.com/v/ewnfWoSQz3o&hl=de&fs=1"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed src="http://
www.youtube.com/v/ewnfWoSQz3o&hl=de&fs=1" type="application/x-
shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="425" height="344"></embed></object>

the <object> tag is missing its classid-attribute and will therefore
be ignored by IE. Now I have the sitaution that I need to alter the
parameters of the object but cannot as IE will simply ignore them.

I'd like to do sth like this now:

$('object').each(function(){
                $(this).attr('classid','clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000');
});

The Problem seems to be that IE decides really early not to accept the
<object>, at least before $(document).ready
Anyone got an idea when to insert the attribute into the object, so IE
will accept it?

Thanks alot!
  • Previous message
  • View by thread
  • View by date
  • Next message

Reply via email to

The Mail Archive
  • The Mail Archive home
  • jquery-en - all messages
  • jquery-en - about the list
  • Expand
  • Previous message
  • Next message
jquery-en
  • The Mail Archive home
  • Add your mailing list
  • FAQ
  • Support
  • Privacy
  • e8a5c2e1-061a-49e6-83cc-5fe4c9bd86f3@e18g2000yqo.googlegroups.com