cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From es <es....@javanet.info>
Subject [solved] Re: problems with js and cforms
Date Sat, 27 May 2006 13:51:13 GMT
> 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


Mime
View raw message