cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist>
Subject [cforms] window onload handler
Date Wed, 17 Mar 2004 05:35:41 GMT
Hello Cocoon dev-dudes,

Believe it or not, people may sometimes still want or need to do some 
client-side Javascript stuff... :-)

I set a window.onload handler in some client-side Javascript, but it 
got stomped by the
	<body onload="forms_onload">
added by the forms stylesheet.

I worked around by hacking forms-lib.js:

	var onloadSaved = window.onload;
	function forms_onload() {
		if (onloadSaved) {
		. // etc...

Is there any reason this shouldn't just be added to forms-lib.js?

Very best regards,

View raw message