[Dojo-interest] dojox.form.FileInput onChange event not working

26 views
Skip to first unread message

markyo

unread,
Feb 29, 2012, 12:26:03 PM2/29/12
to dojo-i...@mail.dojotoolkit.org
I can't seem to get the onChange event for the FileInput dijit to work. When
I try:

dojo.connect(filesDijit, "onChange", changed);

where filesDijit is the name I gave the FileInput dijit (via the
data-dojo-id attribute) and changed is a simple function that displays an
alert message (to test it out).

I've tried all kinds of variations, but can't get it to work. The "onClick"
event works, however. This is very frustrating. Someone please help!

I'm currently using dojo v1.7.2.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-form-FileInput-onChange-event-not-working-tp3787995p3787995.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-i...@mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

swapnil22589

unread,
Mar 1, 2012, 8:06:50 AM3/1/12
to dojo-i...@mail.dojotoolkit.org
Try this one if you are using "async:true" in dojoConfig
this worked for me

require(['dojo/_base/connect',function(connect){

connect.connect(dojo.byId("XXXX"), "onclick", null, function(){
alert("xyz");
}

});


-----
Regards,
Swapnil :)
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-form-FileInput-onChange-event-not-working-tp3787995p3790377.html

Reply all
Reply to author
Forward
0 new messages