You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by es <es...@javanet.info> on 2006/05/27 15:51:13 UTC

[solved] Re: problems with js and cforms

> I still have issue calling my window.onload() what's the correct way to 
> initialize my javascript on loading?

To correctly initialize onload() I had to add these lines:
if (window["forms_onloadHandlers"] == undefined) {
	window.onload = function()	{
     	if (window.winOnLoad) winOnLoad();
     	}
} else {
	var myinit = new Object();
	myinit.forms_onload = function() { winOnLoad();}
	forms_onloadHandlers.push(myinit);
}

hope this helps others...
Eli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org