I've seen simmilar behaviour with safari being unable to finisch loading the 
page because of some javascript error. If you load the page in firefox with 
firebug enabled does it show up any errors ?
----- Original Message ----- 
From: "Jonathan" <[EMAIL PROTECTED]>
To: "iPhoneWebDev" <[email protected]>
Sent: Tuesday, April 15, 2008 4:18 AM
Subject: Secrets to hiding the URL bar


>
> 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 or landscape views 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 the page initially 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
>
> > 


-- 
Mijn Postvak In wordt beschermd door SPAMfighter.
225 spam-mails zijn er tot op heden geblokkeerd.
Download de gratis SPAMfighter via deze link: http://www.spamfighter.com/lnl



--~--~---------~--~----~------------~-------~--~----~
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