Re: [b2g] Is it possible to autofocus on Firefox OS?

2013-07-09 Thread Mounir Lamouri
On 04/07/13 00:17, Rudy Lu wrote: I am not sure if autofocus is supported right now. Gecko supports autofocus since a couple of years. -- Mounir ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

Re: [b2g] Is it possible to autofocus on Firefox OS?

2013-07-04 Thread Andre Mendes
That's right, I probably mistyped it because it's working now. Thanks a lot.. 2013/7/4 Rudy Lu left...@gmail.com Hi André, I am not sure if autofocus is supported right now. But invoke focus() on an input element should work, var input = document.getElementById('input-id');

[b2g] Is it possible to autofocus on Firefox OS?

2013-07-03 Thread Andre Mendes
Hello, I am trying to make my app focus on a input field when it finishes loading. I tried autofocus=true as input parameter; didn't work Also tried $(document).ready(function(){ ('#my-input').focus(); }); didn't worked as well; As we are using angular too, I tried the angular equivalent of the

Re: [b2g] Is it possible to autofocus on Firefox OS?

2013-07-03 Thread Rudy Lu
Hi André, I am not sure if autofocus is supported right now. But invoke focus() on an input element should work, var input = document.getElementById('input-id'); input.focus(); If you cannot get it to work, please feel free to post your sample code somewhere and/or open a bug on bugzilla.