I meant 'in the middle when the virtual keyboard is visible' i.e. in the middle of the small piece of real-estate that is left. The browser will do this automatically for you. You don't have to use any code to make it happen. However the effect can be clobbered if you use the wrong meta information.
On Sep 15, 3:16 pm, Randy Walker <[EMAIL PROTECTED]> wrote: > ?? Putting your field in the middle is a sure way to have it covered > up by the keyboard. > > -=Randy > > On Sep 15, 2007, at 8:59 AM, judge <[EMAIL PROTECTED]> wrote: > > > > > The input field should be scrolled to the middle of the screen. I > > found that the viewport meta information can screw this up though. I > > use the following viewport settings now: > > > <meta name="viewport" content="width=320, initial-scale=1, maximum- > > scale=1"/> > > > You should try this setting to see if it works and then modify them to > > try and achieve the effect you want, checking that the input fields > > still behave. > > > On Sep 4, 2:51 pm, Randy Walker <[EMAIL PROTECTED]> wrote: > >> If you read through the apple iPhone developer page, it mentions (I > >> think) keeping all input fields towards the top of the screen. I've > >> been meaning to play around with onfocus/onblur/onchange etc. to > >> trigger a scrollTo, but got lazy and just moved my two input fields > >> to > >> the top instead. > > >> -=Randy > > >> On Sep 4, 2007, at 11:27 AM, "Tobias Kask" <[EMAIL PROTECTED]> > >> wrote: > > >>> Hi again, and thanks everyone in the group for an interesting > >>> discussion and a neverending supply of helpfulness. :) > > >>> As the topic explains, I've come across problems concerning the > >>> keyboardcovering text areas or other input fields. Does anyone know > >>> of a way to fix this, such as scrolling the screen with a javascript > >>> triggered by an onFocus event? Furthermore, i have a text input at > >>> the very bottom of my screen - could this pose a problem? It seems > >>> impossible to scroll the screen so far down so that this input field > >>> appears above thekeyboard. > > >>> Thank you! Regards, > >>> Tobias Kask --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
