[Dojo-interest] dojo.connect
Peter Wagener
peter.wagener at hypoluxo.com
Tue Jan 30 09:22:15 MST 2007
Hi All,
This is a common mistake, I think. The Dojo Button widget has an
'onClick' method, whereas a bland HTML button has an 'onclick'
method. Here's a thread that discusses it in-depth:
http://www.nabble.com/dojo.event.connect-inconsistency-
tf2554909.html#a7119295
HTH,
Peter
On Jan 30, 2007, at 5:01 AM, CHARLIER Cyril wrote:
> Hello,
>
> have you try with "onclick" instead of "onClick".
> take of the 'C' !
>
> Good luck !
>
> --
> Cyril
>
> On 1/30/07, CHARLIER Cyril <cyril.charlier at gmail.com> wrote:
>> Hello,
>>
>> have you try with "onclick" instead of "onClick".
>> take of the 'C' !
>>
>> Good luck !
>>
>> --
>> Cyril
>>
>> On 1/30/07, NICOLAS Celine RD-TECH-LAN
>> <celine.nicolas at orange-ftgroup.com> wrote:
>> >
>> >
>> > I dont' understand why this :
>> >
>> >
>> > dojo.debug('button:'+this.submitButtonNode);
>> >
>> > dojo.event.connect
>> (this.submitButtonNode,'onClick',this.submitParam,function(e){
>> >
>> > dojo.debug('coucou')});
>> >
>> > generate the following error:
>> >
>> >
>> > DEBUG: button:[object HTMLInputElement]
>> > DEBUG: bad adviceFunc for srcFunc: onClick
>> > DEBUG:
>> > ------------------------------------------------------------
>> > DEBUG: Object: [object Object]
>> > DEBUG: adviceFunc: null
>> > DEBUG: adviceMsg: false
>> > DEBUG: adviceObj: [object Object]
>> > DEBUG: adviceType: after
>> > DEBUG: aroundFunc: null
>> > DEBUG: aroundObj: null
>> > DEBUG: delay: null
>> > DEBUG: once: false
>> > DEBUG: precedence: last
>> > DEBUG: rate: 0
>> > DEBUG: srcFunc: onClick
>> > DEBUG: srcObj: [object HTMLInputElement]
>> > DEBUG:
>> > ------------------------------------------------------------
>> >
>> >
>> >
>> > can you help please?
>> > _______________________________________________
>> > Dojo FAQ: http://dojo.jot.com/FAQ
>> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> > Dojo-interest at dojotoolkit.org
>> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >
>> >
>> >
>>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
More information about the Dojo-interest
mailing list