, .
-, dijit.byId('widget') Dojo widget (dijit), DOM. DOM. dojo.byId(), , DOM.
Secondly, onFocus will not target the DOM event. DOM events should be all lowercase, so in this situation you will use "onfocus".
Try this code:
dojo.connect( dojo.byId('widget'), 'onfocus', function() {
dojo.byId('widget').select();
});
This should allow him to work correctly. I replaced this.textbox.select () as I do not see a reference to the object that will be referenced by 'this'.
Try here
source
share