[Seaside] Using the "#onLoad:" event

Lukas Renggli renggli at gmail.com
Sat Oct 3 04:43:26 UTC 2009


> I understand that when a page finishes loading an element, its "load" event will be triggered (assuming it is defined). I have a "#renderContentOn:" method with a table followed by a jQuery dialog (the dialog contains the "#onLoad:" event). Am I correct in the assumption that evaluating a function that selects the table (which should be rendered already?) will work?

No, the onLoad event only works (in a cross browser fashion) only on
the root element of the DOM tree, i.e. the body.

You could use the onOpen event on the jQuery dialog object.

Lukas

>
> If I change the event to "#onClick:" it works just fine, but not with "#onLoad:". I can provide some code if necessary, but I imagine I'm not taking into account something more fundamental.
>
> Thanks!
> RS
>  		 	   		
>

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list