This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am using a jQuery Tools overlay to present a dialog box to the user. If the user clicks on the close button, I need to trigger an event noting that fact. The code I wrote to do it works in Chrome and IE, but fails in Firefox on both Mac and Windows.
(the onClose property is part of the object I use to initialize the overlay)
In Firefox, e.srcElement is undefined. So is e.originalTarget. Does anyone know of a workaround for this issue?
e.target doesn't work. It contains the overlay object itself. I need to get a handle to the closing element. Failing that, I need to figure out that the overlay dialog was cancelled as opposed to accepted.