Bug Tracker

Modify

Ticket #6661 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

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

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

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.