Hi, I'm planning to write a Trac plugin which needs to execute a javascript function on load, i.e. <body onload="func()">. I know I could just put a window.onload = func; in the javascript file of the plugin, but his may overwrite an existing onload function from other installed plugins.
I found a way to handle multiple onload functions: http://www.webreference.com/programming/javascript/onloads/ but using an self-written addLoadEvent() function only in my plugin solves the problem only by 50%: other plugins might redefine the same add function with the same or a different name or simply overwrite the onload event. Does someone know a "standard" way to add onload (and onunload) events for trac plugins? If not, would be an own trac plugin which only adds this addLoadEvent and addUnloadEvent functions for other plugins to use preferable? Thank you for your comments, Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
