Hello everybody,
Is there a way to set the focus on a text box which is inside a dialog.
I tried
dialogWidget.show();
dojo.byId("mytextbox").focus();
and
dialogWidget.tabStart = dojo.byId("mytextbox");
dialogWidget.show();
Hello everybody,
Is there a way to set the focus on a text box which is inside a dialog.
I tried
dialogWidget.show();
dojo.byId("mytextbox").focus();
and
dialogWidget.tabStart = dojo.byId("mytextbox");
dialogWidget.show();
guessing
maybe the other way round?
dojo.byId("mytextbox").focus();
dialogWidget.show();
There are a few other
There are a few other methods found by doing a search of this site, but the method I'm using is similar to:
dialog.show(); setTimeout("dijit.byId('widgetId').focus()",100);where "widgetId" is the id of the widget inside the dialog you wish to have focus.
I found the solution for blinking cursor in textbox
dialog.containerNode.style.overflow="auto";
dialog.tabStart = dojo.byId("mytextbox");