[Twisted-web] Athena can handler list

Jean-Paul Calderone exarkun at divmod.com
Tue Jul 7 12:24:25 EDT 2009


On Tue, 7 Jul 2009 12:58:29 -0300, Juanjo Conti <jjconti at gmail.com> wrote:
>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?
>

After the page is fully loaded and after Athena has finished its own
initialization (like creating your widgets).

Jean-Paul



More information about the Twisted-web mailing list