Hello,

I am dispatching an event on TextFiled. it is firing the event, but I get
the error evt.getValue() is not a function. Can somebody point me the error
here?

var userIdField = new qx.ui.form.TextField(USERID_DEFAULT);
userIdField.setLiveUpdate(true);
userIdField.addEventListener("changeValue", function(evt) {
   if (evt.getValue().length ==  0) {
        userIdField.setBackgroundColor("#FFc4c4");
        submit.setEnabled(false);
    }
});
userIdField.dispatchEvent(new
qx.event.type.DataEvent("changeValue",userIdField.getValue()),true);

FireBug shows "evt.getValue() is not a function.
What should I pass to DataEvent's 2nd argument? 
And how do I pass the TextFiled value to it?

Thank you.
Kanugula.
-- 
View this message in context: 
http://www.nabble.com/dispatchEvent-firing-but-evt.getValue%28%29-not-getting-data-tp16290517p16290517.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to