Possible Duplicate:
iPad Web App: Detect Virtual Keyboard Using JavaScript in Safari?
I'm building a mobile version for a website, and I'm interested if I can create using jQuery/js/html5 or any other technology the same split screen effect that can be made on mobile apps when virtual keyboard is visible.
For example if a user enters my webpage and clicks on an input text field, the virtual keyboard is showed and the browser automatically zooms to the area where the input text field is.
What I want is to be able to change my page content the moment the virtual keyboard is visible based on the new resolution( screen height - keyboard height), by moving the input text field on top of the screen, followed by some tips depending on what the user enters in the text field.
Here are some sketches to see what I am talking about:
This is the page view without keyboard, results based on the search:
page with portrait keyboard, the logo disappears, the text input moves to top, and a max 4 items are shown
page with landscape keyboard, the logo disappears, then input moves to top and is enlarged, only 2 items are shown
is the keyboard is hidden, the page should go to phase 1.
Hope this helps.