PDA

View Full Version : Event documentation needed


substra
11-08-2006, 12:23 AM
Hello;

I'd like to find some information about predefined event which can be used on different tag? When and under which condition they are launched. Is there a documentation about?

Thanks

bfagan
11-09-2006, 09:24 AM
If I understand your question correctly...

I predefine events that I can use throughout my various components.

Here's an onfocus event:

<class name="evalfocus" extends="node">
<method event="onfocus" reference="parent">
parent.setAttribute('tempValue',parent.getText());
</method>
</class>

which I would later use:

<inputtext>
<evalfocus />
</inputtext>

<edittext>
<evalfocus />
</edittext>


Is that what you had in mind?

substra
11-10-2006, 01:13 AM
Hello;

It's not what I need, sorry I am French ;-)

I'd like to have information about the events defined by LPS (ondata, oncconstruct, oninit, etc) , not by end-user.

Is there any diagram about when and in which conditions they are launched: before or after the instantiation of the objet, etc.
Is onconstruct launched before or after oninit for example ??

jsundman
11-10-2006, 07:12 AM
For a discussion of events in general, see the chapters in the Developer's Guide on Events and Delegates.

http://www.openlaszlo.org/lps/docs/guide/methods-events-attributes.html

http://www.openlaszlo.org/lps/docs/guide/delegates.html

For a discussion of the order of initialization of objects, see this:

http://www.openlaszlo.org/lps/docs/guide/initialization-and-instantiation.html

substra
11-13-2006, 01:45 AM
Thank you.

I'have ever seen these documentation but I didn' find what i needed (list of all event , etc)