Page 2 of 2

Set focus not work on iphone(iOS)?

Posted: Sat Mar 15, 2014 5:25 pm
by GodSpeed JP1

Hello, Anyone help me?
I've been waiting all day.
Appery('name').focus(); just not work on real device.
I really need it.


Set focus not work on iphone(iOS)?

Posted: Sat Mar 15, 2014 5:34 pm
by Igor

Hello,

Sorry, We need some time to check this on device.


Set focus not work on iphone(iOS)?

Posted: Sat Mar 15, 2014 6:04 pm
by GodSpeed JP1

Hello Igor,
Thank you for your reply.
If you need my public link,here it is:
http://appery.io/app/mobile-frame?src...


Set focus not work on iphone(iOS)?

Posted: Sun Mar 16, 2014 6:19 pm
by Illya Stepanov

Sorry - we need additional time to test it on a device. And please can you tell on what page you are calling .focus()?


Set focus not work on iphone(iOS)?

Posted: Sun Mar 16, 2014 6:57 pm
by GodSpeed JP1

Hi Illya,I call the focus on page "BBSComment" in "page show" or "load" event.
If you want to test it,you need click the list item on first page then click the list item on second page then click the top right button, you will see login page ,user id is 234234, password is 2342, login then you will see the BBSComment page,I want set focus to the textarea,when this page load.


Set focus not work on iphone(iOS)?

Posted: Sun Mar 16, 2014 7:13 pm
by Illya Stepanov

Ok, thank you for clarification - we'll try to test it as soon as possible.


Set focus not work on iphone(iOS)?

Posted: Wed Mar 19, 2014 4:01 pm
by Nikita

Hello,

Sorry for the delay, but it's a difficult question.This function focus() works partly on a device. INPUT is highlighted, but keyboard doesn't appear. At the limits of one page such a scheme would work. If on click on any component set focus on input field. I.e. user interaction is required. It looks like a restrictions from OS developers. You can search for an answer on http://stackoverflow.com/, for example, but there is no single answer, only experimental solutions. Or you can change your application a little.


Set focus not work on iphone(iOS)?

Posted: Wed Mar 19, 2014 4:16 pm
by GodSpeed JP1

OK, Thank you Nikita,
I think change my app may be the simplest solution.
I will try some another way.
If you get some new information about this,please tell me.