-
17 Aug 2010 4:08 PM #11
blur is the opposite of focus.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
19 Jan 2012 10:48 AM #12
Do you guys have any luck of making this work on the iPhone?
I've tried to create textfields in different ways as you were showing here, but still focus() is working only when I test in Chrome.
The code for setting focus is:
Btw, in the iPhone Safari debug log I can see that the field was successfully found, but method doesn't work in some reason.Code:App.views.form.getComponent(nodeId).fieldEl.dom.focus();
You're a true obsessive programmer, if your answers to the questions are totally correct and totally useless at the same time.
-
3 Jul 2012 7:42 PM #13
Set focus
Set focus
for hiding the keyboard use:
window.blur();
or
document.activeElement.blur();
but I am having problem with showing keyboard when view changes. Setting the focus to textfield works only in chrome not in the device.
field.fieldEl.dom.focus();
-
3 Jul 2012 7:44 PM #14
yes same here. its works in chrome perfectly not in the iPhone
-
13 Jul 2012 5:07 AM #15
why?
-
15 Dec 2012 6:00 PM #16
fieldEl does not exist
fieldEl does not exist
I am trying to set the focus , like in the example , but the far I can go is .element
not fieldEl , either el .
how can I get fieldEl from element ?
Similar Threads
-
Textfield sometimes not getting focus
By yanfa01 in forum Ext GWT: DiscussionReplies: 2Last Post: 6 May 2010, 12:23 AM -
set focus on a textfield
By Stephan123 in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 2 Nov 2009, 8:30 AM -
Set focus on a textfield
By dinosauro in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 10 Sep 2008, 5:58 PM -
set focus on textfield doesn't work
By Ricardo72 in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 31 Jan 2008, 3:39 AM -
Set Focus for textfield ....??
By xucloudy in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 23 Dec 2007, 4:31 AM


Reply With Quote