Skip to main content

Bug Tracker

Side navigation

#11685 closed bug (worksforme)

Opened May 02, 2012 05:44PM UTC

Closed May 02, 2012 08:21PM UTC

Last modified May 02, 2012 08:31PM UTC

isReady never set to true IE9 + embed tag

Reported by: chris.ewing@mindmatrix.net Owned by: chris.ewing@mindmatrix.net
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

<object id="ui-sales-help-movieObj" style="height: 360px; width: 640px" >

<param id="ui-sales-help-movieName" name="movie" value="" />

<param name="wmode" value="transparent" />

<param name="allowFullScreen" value="true" />

<param name="allowScriptAccess" value="always" />

<embed id="ui-sales-help-videoEobj" src="" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360" wmode="transparent" />

</object>

This code prohibits the $(document).ready() from firing. My work-around was to use jquery to append the embed tag after onReady fires.

Attachments (0)
Change History (9)

Changed May 02, 2012 05:55PM UTC by rwaldron comment:1

owner: → chris.ewing@mindmatrix.net
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/

Open the link and click to "Fork" (in the top menu) to begin.

Changed May 02, 2012 05:56PM UTC by chris.ewing@mindmatrix.net comment:2

status: pendingnew

http://jsfiddle.net/hdtJn/

I believe this is what you want, opening this in IE9 nothing happens. Opening this in chrome, I get the expected alert. For whatever reason, the $.isready never gets set to true when the <embed /> tag is in the html. Possibly an IE9 bug and not a jQuery bug.

Changed May 02, 2012 06:25PM UTC by rwaldron comment:3

status: newopen

Confirmed. alert-less reduction here: http://jsfiddle.net/rwaldron/Ume9Y/

Changed May 02, 2012 08:16PM UTC by chris.ewing@mindmatrix.net comment:4

I just wanted to add that the culprit appears to be the empty src="" attribute. This is also causing an issue in FireFox where you have to hit escape for the page to fire the ready event. I think FireFox and IE9 are requesting a location of "/" when src is empty which causes the browser to never think its finished loading.

This may not be something jQuery can not detect and it might rightfully not be something it should detect.

Just for clarification of the empty src="", we have several links to videos and 1 modal window that loads the src depending on which link is clicked.

Changed May 02, 2012 08:19PM UTC by rwaldron comment:5

Perhaps omitting the src="" attribute until you actually need it?

Changed May 02, 2012 08:21PM UTC by rwaldron comment:6

resolution: → worksforme
status: openclosed

Bingo, I changed the src="" to src="#" and it works now...

http://jsfiddle.net/rwaldron/Ume9Y/

Changed May 02, 2012 08:23PM UTC by anonymous comment:7

Yea, looks like we were both trying the same thing at the same time, haha. Thanks for your time;)

Changed May 02, 2012 08:24PM UTC by rwaldron comment:8

You're welcome!

Changed May 02, 2012 08:31PM UTC by mikesherov comment:9

for the record, this is probably also fixed by jQuery.quickReady in 1.8pre. I can imagine that readyState gets hung at "interactive" with empty src. I'm going to verify that just for fun.