Opened 15 years ago
Closed 12 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 15 years ago by
Component: | core → event |
---|---|
Owner: | set to john |
Priority: | major → minor |
comment:2 Changed 12 years ago by
Owner: | changed from john to kB |
---|---|
Status: | new → pending |
comment:3 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | pending → closed |
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.
This may have been fixed; please provide a test case.