Skip to main content

Bug Tracker

Side navigation

#6661 closed bug (invalid)

Opened June 11, 2010 07:49PM UTC

Closed June 12, 2010 01:09AM UTC

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:
Blocked by: Blocking:
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)

}

}

Attachments (0)
Change History (1)

Changed June 12, 2010 01:09AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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