Sunday, May 10, 2009

registerPloneFunction

You might need to run a javascript function that needs to be run upon window.load event. A quick and easy way to get this done in Xataface is to write the script however you want it and then use the registerPloneFunction(function). With function being the javascript function you want to run. So for example, you could do something like this:



In the after_view_tab_content block, we add this external javascript. And then in your javascript file:



You can actually add the javascript to any block. The registerPloneFunction always makes sure it is run when the window is finished loading event.

1 comment:

karan Vahi said...

Taivas Media is the top website design & development company in india based in delhi. It offers the best content writing services india for website and authors. Along with this it is also a graphic design services company. if you are in search for a great web and graphic design agency. You can get in touch with Taivas Media.