On Nov 18, 2:39 am, "Rémi Grumeau" <[email protected]> wrote: > As i know, onorientationchange is an event, so the browser warm up > this event only when the orientation is changed. > I think iPhone Safari and Android support it. Can't tell for > Blackberry OS6. > > The best if of course to perform a check on it. If not supported, you > can go for an interval that checks window.innerWidth vs > window.innerHeight each 300ms but this could be a battery blood sucker > if someone stay long (an hour) on your webapp to have a 3 tests each > second. > > see example herehttp://we-are-gurus.com/labs/orientation.html
As noted in reply to your post on another thread, that test "works" only by coincidence. It will fail in browsers that behave differently to Safari on iOS where it may incorrectly determine there is no support. -- Rob -- 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.
