Neil wrote: > how do I get the location/search > bars to 'auto-hide' as they do on iphone.facebook and m.flickr once > the page has loaded?
You almost guessed it: > scroll down the page. > The old-school trick is to use: scrollTo(0, 1); You can look at the iUI source to see how this is done: http://code.google.com/p/iui/source/browse/iui/iui.js iUI is only 514 lines, but look for setOrientation() to find the call to scrollTo() Note: that scrollTo is called both from onload and onorientationchange (and when onorientationchange is not present, it is called from the timer) If your app can work well without any browser chrome, you can add the meta tag: <meta name="apple-mobile-web-app-capable" content="yes" /> This will hide all chrome when you use the "Add to Home Screen" option and the WebApp is launched from the Home Screen. -- Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to iphonewebdev@googlegroups.com To unsubscribe from this group, send email to iphonewebdev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---