[Twisted-web] Athena can handler list
Juanjo Conti
jjconti at gmail.com
Tue Jul 7 11:58:29 EDT 2009
2009/7/7 Jean-Paul Calderone <exarkun at divmod.com>:
> On Tue, 7 Jul 2009 12:36:04 -0300, Juanjo Conti <jjconti at gmail.com> wrote:
>>Where can I found a list of events Athena can handle?
>>
>><athena:handler event="onsubmit" handler="doRead" />
>>
>>I know onsubmit and onkeypress. I tried to use onload but didnt work :(
>
> This depends on the browser. If the browser supports an event (remember,
> different nodes support different events), then it should work with an
> <athena:handler> tag. The node the handler is applied to is the one which
> immediately contains the <athena:handler> tag. IIRC, `onload´ is only
> supported on a few elements, eg body. You might want to override the
> Widget method `loaded´ instead.
If I define a loeaded methon on my Widget, it'll be called when the
page is loaded?
--
Juanjo Conti
More information about the Twisted-web
mailing list