Ticket #6661 (closed bug: invalid)
Event firing does not work from within a Firefox plugin.
| Reported by: | JAM | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | event | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I am unable to fire a .click() event from within a Firefox plugin. For example:
$("#logonId",pageDoc).click();
pageDoc is the document of the page which Firefox is currently on. I can fire it correctly if I use the following function:
function fireEvent(element,event) {
if (document.createEvent) {
dispatch for firefox + others var evt = document.createEvent("HTMLEvents"); evt.initEvent(event, true, true ); event type,bubbling,cancelable return !element.dispatchEvent(evt);
} else {
dispatch for IE var evt = document.createEventObject(); return element.fireEvent('on'+event,evt)
}
}
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

The information provided isn't enough to determine whether there is a bug in jQuery core or not, but I suspect it is not. Please ask for help on the forum as a first step, and if the general consensus is that this really is a bug, reopen with a complete test case.
http://forum.jquery.com