Hi,

There are two ways to add events to a dynobject. you
could use:

obj.oneventname = function(e){}

or

obj.addEventListener(eventlistener_object);

either way works just fine, but it's recommended that
you use addEventListener() when designing widgets. 

See the docs/changelog.html file for more information.


--
Raymond Irving


--- Kevin <[EMAIL PROTECTED]> wrote:
> Hi Raymond,
> 
> Quite like Button widget. Though I forget my dynapi
> basics.
> 
> How does this work?
> 
> btn.onbuttonclick = function(e){
>  window.status = cnt++;
> }
> 
> I found:
> 
> o.invokeEvent('buttonclick');
> 
> in ButtonStyle.js on a mouseup. OK but I was
> expecting:
> 
> btn.addEventListener({
>  onbuttonclick : function(e) {window.status =
> cnt++;}
> });
> 
> is this the same thing? I need to re-learn the core
> dynapi :(
> 
> I believe you are going back to a traditional widget
> model
> will interface and events stay the same?
> 
> -
> Kevin
> 
> 
> 
>
-------------------------------------------------------
> This SF.net email sponsored by: Enterprise Linux
> Forum Conference & Expo
> The Event For Linux Datacenter Solutions &
> Strategies in The Enterprise 
> Linux in the Boardroom; in the Front Office; & in
> the Server Room 
> http://www.enterpriselinuxforum.com
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to