Bug Tracker

Opened 12 years ago

Closed 9 years ago

#3008 closed bug (worksforme)

Ready event not fired from MSIE frame

Reported by: kB Owned by: kB
Priority: minor Milestone: 1.3
Component: event Version: 1.2.6
Keywords: ready not fired Cc:
Blocked by: Blocking:

Description

I've spent some time trying to figure out why the jQuery ready wasn't being fired on my test app. Actually it would fire, once in ten or twenty page reloads.

Test app uses two frames, and loads jquery.js on each of those dynamically (using a hardcoded javascript in HEAD tag).

After a bit of research I found out that setTimeout( "alert($.isReady)", 2000), says "false", and started suspecting jQuery. By looking at the code I found out that changing:

if ( jQuery.browser.msie && window == top )

to

if ( jQuery.browser.msie )

fixes the problem (actually I wrote code that tests if self==top, and doing exactly the same thing as bindReady does for IE, before looking inside the jQuery).

Change History (3)

comment:1 Changed 12 years ago by flesler

Component: coreevent
Owner: set to john
Priority: majorminor

comment:2 Changed 9 years ago by dmethvin

Owner: changed from john to kB
Status: newpending

This may have been fixed; please provide a test case.

comment:3 Changed 9 years ago by addyosmani

Resolution: worksforme
Status: pendingclosed

Given the age of this ticket and my opinion that the issue experienced sounds a lot like it was down to the implementation being used rather than a jQuery core issue, I am closing on the grounds that this isn't a core bug. If the original ticket submitter would like to re-open with a valid test case they may do so and we'll re-investigate at that point.

Note: See TracTickets for help on using tickets.