<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi. My problem is that Seaside isn't calling a javascript window.onload event handler. I've defined this handler in a javascript file like this:<br><br>window.onload = function(e) {<br>
&nbsp; var cookie = readCookie('mycookie');<br>
&nbsp; var title = cookie ? cookie : getCurrentTitle();<br><br>&nbsp; alert('hi this isn't working');<br>
&nbsp; setCurrentTitle(title);<br>
}<br><br>window.onunload = function(e) {<br>&nbsp; var title = getActiveTitle();<br>&nbsp; createCookie('mycookie', title, 365);<br>}<br><br>Then I've made a #script method in a WAExample class with the contents of this .js. I need the framework to call the onLoad event and execute that function, but when I enter the pages nothing happens. This is the expected behavior? Should I add something else to my component?<br>I'm using Seaside2 (2.7a1.mb210).<br>There's any way to solve this?<br>thanks<br><br><br></div></div><br>__________________________________________________<br>Correo Yahoo!<br>Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>Regístrate ya - http://correo.espanol.yahoo.com/ </body></html>