|
Code -
Javascipt
|
|
Written by Christopher Anderson
|
|
Tuesday, 16 September 2008 19:23 |
|
I just came across a method to modify the event handlers of a page after they've been established using JavaScript. Normally you know what functions you want to call in the body's onload event at the time you write the code but sometimes you don't or are operating inside a framework that doesn't allow you to change the base code.
I was recently in this situation and spent a great deal of time looking for the solution so I thought I'd share it here in order to make it more commonly known so others don't need to search as hard. You simply use the method attachEvent([eventName], [functionName]). This function appends a new function call to the list of functions already included in the event handler. |
|
|
Things are moving quickly here at Moron Solutions with many exciting projects in the works.
Here are some projects that are in coming soon:
Enhancements to MS Comment - I know many of you are excited to see multilanguage support added as well as per-article comment enablement/disablement. We're excited, too! These enhancements will be delivered as soon as possible. ETA: 1/31/2009
ZIMB (Pronounced Zim) - Moron Solutions is designing a broad, GUI design framework for PHP that will support a full range of AJAX controls and site designs. This is a very large project but much of the basic framework is already implemented. It will be primarily architected to leverage PHP technologies on the iSeries but will also support other platforms. ETA: 06/01/2009
Super Secret Website Project - In affiliation with other partners, a new web life tool should be forthcoming in the next few months. Stay tuned! ETA: UNKNOWN
If you find the quality and style of Moron Solutions applications to your liking, have us program your next application! Use the contact tab above to start the process! |
|
|