groundhog javascript

Just a few lines of JavaScript for the prototype framework that will call your method everytime either when you either resize the window or complete an ajax request:

function yourmethod() { alert('HI');} document.observe('dom:loaded', yourmethod); Ajax.Responders.register({onComplete: yourmethod}); Event.observe(window, "resize", yourmethod);

Leave a Reply