You could try using the CSS declaration min-height, just set up a
javascript to change the class of the body based on landscape or
portrait, then just apply the min height appropriately.

Cheers,
Amadeus

On Apr 16, 2:14 pm, Jonathan <[EMAIL PROTECTED]> wrote:
> Try my jQuery plugin for this, if it still doesn't work let me know
> and I'll work on it for you.
>
> Download:http://plugins.jquery.com/project/iphone
>
> Function to use:
> $.iPhone.hideURLbar();
>
> On Apr 16, 7:11 am, "J. Brisbin" <[EMAIL PROTECTED]> wrote:
>
> > I don't know if this applies in your situation, but I have this
> > problem ALL THE TIME because the Ajax requests in thepagehaven't
> > finishedloadingwhen the scrollTo is called. I've tried putting in a
> > delay, but it's different on WiFi than it is on EDGE. So I tried
> > checking document.readyState, but that's not good enough because the
> > Ajax requests don't affect the overallpage'sreadyState.
>
> > I'd also be interested in a workable solution! :)
>
> > Thanks!
>
> > Jon Brisbinhttp://jbrisbin.com
>
> > On Apr 14, 9:18 pm, Jonathan <[EMAIL PROTECTED]> wrote:
>
> > > Hiding the address bar for the iPhone's safari web browser is tricky
> > > business.  If this line exists in my document head
>
> > > <link href="stylesheet.css" type="text/css" rel="stylesheet" />
>
> > > Then window.scrollTo(0, 1) works flawlessly to tuck the address bar
> > > away, but if that line is not present, regardless if stylesheet.css is
> > > blank, regardless if my content is much longer than either the
> > > portrait orlandscapeviews of the phone, no amount of setTimeOut
> > > allows it to function otherwise.  Here is one of the more popular
> > > scripts:
>
> > > if (navigator.userAgent.indexOf('iPhone') != -1) {
> > >         addEventListener("load", function() {
> > >                 setTimeout(function() { window.scrollTo(0, 60); }, 0);
> > >         }, false);
>
> > > }
>
> > > When thepageinitially loads on my iPhone I see the content shift
> > > upwards, suggesting that the scrollTo worked, but then in the next
> > > instant the address bar shifts back downward.  What is the secret to
> > > hiding the URL bar?
>
> > > Jonathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to