The quirk seems to be when incorrect credentials are used.
- How does the keyboard know what incorrect credentials are?
- Assuming that you are checking credentials remotely, upon what event do you send data to the server?
When the log in button is pressed (touchend) an ajax call is made to our server. On a successful response, the page location is changed. On an unsuccessful response, an error is displayed on screen.
I must guess here:
- it doesn't really have anything to do with 'wrong credentials'. Rather, it's the way you handle the input that doesn't make the keyboard disappear (yet)
- on a page switch, the keyboard will disappear
- I guess the keyboard also disappears when the form is submitted, but not (yet) on the touchend event
So; I would suggest you catch the form's submit event, then use ajax to send the data to the server.
Good call. I was using inputs without being part of a form and just reading them using jQuery. It would seem that phonegap doesn't like that. Re-wrote the page to be an html form and caught the submit event like you suggested and it's working fine.
Thanks for your help. I would never have tried paring it back that far.
Glad I could help.
BTW, you wrote:
It would seem that phonegap doesn't like that.
Fair point. Thanks.