PDA

View Full Version : Ext.form.Text.focus() doesn't work in iPad



chandramuralis
20 Jul 2011, 7:02 AM
Hi,
I'm trying to set focus on textbox using focus() function. This was working fine in Chrome browser and not in iPad. When user types something in the textbox press enter to accept the value and add it to the list, after adding to list the control I'm trying to set the focus back to the textbox, so that the user can add another item without requiring manual effort to select the textbox.


this.searchBox.focus();

I'm calling the above function to set focus.

colworx
20 Jul 2011, 1:01 PM
I'm having the same problem. I posted a thread about it yesterday in the Sencha Touch Premium forums. I'll let you know my solution if I figure it out.

chandramuralis
20 Jul 2011, 1:04 PM
that would be great. Thanks

emadow
20 Jul 2011, 3:46 PM
Hate to say it, but this method is not available on mobile Safari. That's right, you cant focus() a text field on the iPhone/iPad.