DynAPI 3.0 still uses event listeners. Its the
EventListener class that has been deprecated.

The new event listener is just a simple js object. So
for lp to trigger the onload use:

var el = {};
el.onload = function foo () {
        //do some stuff;
};
lp.addEventListener(el);


Only dynapi.onLoad and layer.onCreate and
layer.onPreCreate events are used as you've mentioned
below.

--
Raymond Irving

--- Arijit Das <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I just started learning dynapi 3.0 (from 2.5.7) and
> I'm trying to get my 
> bearings.  I've been reading the documentation
> (greatly improved since 
> 2.5.7), but there is something I can't figure out:
> 
> Now that the onload event has been changed and event
> listeners have been 
> deprecated, how do I time something to when a
> loadpanel finishes loading?
> 
> I've tried
> 
>       lp.onLoad(foo);
>       function foo () {
>               //do some stuff;
>       }
> 
> where lp is the loadpanel.  I've tried putting that
> code in the init 
> function, where init is called by
> dynapi.onLoad(init), and I've tried 
> putting it outside of the init function.  Neither
> works.
> 
> Any help is greatly appreciated, as always!
> 
> Thanks,
> Arijit
> 
> 
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by: The SF.net
> Donation Program.
> Do you like what SourceForge.net is doing for the
> Open
> Source Community?  Make a contribution, and help us
> add new
> features and functionality. Click here:
> http://sourceforge.net/donate/
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to