Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 8 years ago

#4179 closed bug (worksforme)

no focus event in iframe, opera

Reported by: robing Owned by: robing
Priority: low Milestone:
Component: event Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:

Description

when i focus on a page element in an iframe there is no focus event triggered, the function works in ie8, ff3, safari and chrome but not opera 9.60

var iBody = $("iframe").contents().find("body");

$('.contentEditable', iBody).focus(function () {

alert("hello");

});

Change History (6)

comment:1 Changed 9 years ago by dmethvin

Component: unfiledevent

comment:2 Changed 9 years ago by miketaylr

Resolution: invalid
Status: newclosed

Closing as invalid. Please reopen with a working testcase.

comment:3 Changed 9 years ago by miketaylr

Milestone: 1.3.1
Resolution: invalid
Status: closedreopened

comment:4 Changed 9 years ago by miketaylr

Keywords: needsreview added
Owner: set to robing
Status: reopenedpending

Reopening so it doesn't slip through the cracks. Can you test with the latest version of jQuery and provide a working test case? Thanks.

comment:5 Changed 9 years ago by dmethvin

Keywords: needsreview removed

comment:6 Changed 9 years ago by jitter

Priority: majorlow
Resolution: worksforme
Status: pendingclosed

test case. Works fine for me in Opera 10.63 and jQuery 1.4.4.

@robind Make sure the iframe src isn't on an other domain (cross domain restrictions) and also make sure you wait for the iframe to load before you try binding events to elements therein.

Note: See TracTickets for help on using tickets.