|
From: Raymond I. <xw...@ya...> - 2003-10-20 00:45:28
|
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 <ke...@ke...> 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
> Dyn...@li...
>
http://www.mail-archive.com/dyn...@li.../
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
|