Extjs4 - how to focus on a text field?

There isn't anything wrong with your code. I've made a jsfiddle for it and it works fine. Are you wrapping code in and Ext.onReady()?

Also what browser are you using?

On FF 6.0. 2 mac. Definitely wrapped in onReady handler.. your jsfiddle works for me.. must be something somewhere else in my code that must be stealing focus.. I guess I can try trimming out the rest of the code to where it starts working again.

At least I know focus should work now, thanks – Ben Sep 24 at 2:13.

Sometimes a simple workaround is to slightly defer the focus call in case it's a timing issue with other code or even with the UI thread allowing the focus to take place. E.g. : Ext.

Defer(function(){ Ext. GetCmp('email').focus(); }, 0).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions