Bug Tracker

Modify

Ticket #4465 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

.load not fired on iframe in chrome

Reported by: Kus Owned by: brandon
Priority: major Milestone:
Component: event Version: 1.3.2
Keywords: load Cc: blakekus@…
Blocking: Blocked by:

Description

$('body').append($('<iframe id="iframe"></iframe>')); $('#iframe').load(function(){alert("loaded");});

Works in IE7 FF2 but not in Google Chrome 1.0.154.53.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

You're adding the event after the element, so what if the event fires immediately or doesn't fire because there's no url specified?

A complete test case might help narrow down the problem.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.