Due to some progress need to modify this one.
I have managed the refresh problem, just need to delay it a little
bit:
window.onload = function() {
setTimeout(function(){window.scrollTo(0, 1);}, 100);
}
That's fine. The problem is that this method won't work on a
"touchscroll" (http://github.com/davidaurelio/TouchScroll ) enabled
page.
So if anyone is using touchscroll framework in his projekt and have
sorted out the url hiding please let me know.
thx
Touchscroll
On Sep 6, 11:18 am, ".:: Pe16::." <[email protected]> wrote:
> Hy,
>
> (tested on ipod)
> When opening my webapp in safari mobile, the URL bar can be hidden
> with the window.scrollTo(0, 1) method (wich seems to be the officially
> documented way for hiding the iPhone toolbar..)
>
> That works!
>
> But if you then, touch the statusbar (top) the URL bar is unveiled.
> Now you would think that you sould just refresh the page (refresh
> arrow at the end of the URL in URL bar) and hide the URL bar...but
> that doesn't seems to work.
>
> However, if you instead of clicking the refresh arrow, just hit the
> "Go" button on the iphone keyboard -> the method works and URL bar is
> hidden (window.scrollTo(..))
>
> So this means probably that page_refresh is not opening the page as if
> you go twice to the same page. Maybe it's from a cache..?
>
> I'v tried to wait the page completes rendering and then do
> scrollTo..but nothing.
>
> Have you seen this/figured it out?
>
> ps.
>
> This is tested on ipod when you open your webapp from safari (not
> first added at homescreen)
>
> I know there are some meta tags that work if you open your webapp from
> the homescreen..this is not where the problem is. It is exlusively in
> mobile safari
--
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.