Why not use the
_spBodyOnLoadFunctionNames.push
function?

Because I didn't know it existed. :D

Thanks Arjan. I'll take a look.


From: [email protected] [mailto:[email protected]] On Behalf Of Paul Noone
Sent: Monday, 22 December 2008 9:24 AM
To: [email protected]
Subject: Getting around _spBodyOnLoadWrapper

My earlier excitement at discovering I could add JavaScript directly to content 
editor web parts was quashed upon realising that any onload events I might 
require were being overridden by the master page's onload call to 
_spBodyOnLoadWrapper in the body tag.

Has anyone found a clever way to add extra onload events to a page without 
modifying the core.js files?

Has anyone written a wrapper function that checks for onload events and allows 
you to add extra functions as required? Or is there another way?

Any advice appreciated.
________________________________
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
________________________________
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
--------------------------------------------------------------------------------
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to