[Seaside] javascript window.onLoad not called
Joseph Blatter
josephblatter62 at yahoo.com
Sat Mar 24 23:09:51 UTC 2007
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:
window.onload = function(e) {
var cookie = readCookie('mycookie');
var title = cookie ? cookie : getCurrentTitle();
alert('hi this isn't working');
setCurrentTitle(title);
}
window.onunload = function(e) {
var title = getActiveTitle();
createCookie('mycookie', title, 365);
}
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?
I'm using Seaside2 (2.7a1.mb210).
There's any way to solve this?
thanks
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070324/86a68cc2/attachment.htm
More information about the seaside
mailing list