
Project: XPages Extension Library (Managed by Philippe Riand, Niklas Heidloff, Dave Delay, Akihiro Kosugi, Maire Kehoe, Tony McGuckin, John Piermarini, Martin Donnelly, James Quill, Darin Egan, Padraic Edwards, Andrejus Chaliapinas, Lorcan McDonald, Simon McLoughlin, Paul Hannan)
 | 

 |  |
| Subject | You can generate a JS function... |
| Created | 10/01/2011 05:06 PM by Philippe Riand. |
| Modified | <none> by Niklas Heidloff/Germany/IBM. |
... that does what the generate href does.
Cross browser event dispatching can easily be fixed, if you want to trigger a link click:
if (!dojo.isMozilla && !dojo.isWebKit) {
oActive.fireEvent('onclick');
} else {
var evClick = dojo.doc.createEvent('MouseEvents');
evClick.initMouseEvent('click', true, true, dojo.global, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
oActive.dispatchEvent(evClick);
}
|
Feedback
Check out other projects