The deviceorientation event is a W3C spec, whereas the orientationchange event is an apple standard I believe
http://developer.apple.com/library/IOs/#documentation/AppleApplications/Ref erence/SafariWebContent/HandlingEvents/HandlingEvents.html I am generally in favour of following the w3c however I personally like the orientationchange event API better... D: On 12-02-02 12:41 PM, "Jesse" <purplecabb...@gmail.com> wrote: >No, not to that spec. However it is mentioned in the section: >"... may be able to do so with the existing *orientationchange* event." > >Overall, it is a much simpler API where: >a) window.orientation holds the current value of one of [0,90,-90,180] >b) window fires orientationchange event when it changes > >Currently consistent in BB-WW, iOS, Android, WP7 > >In PhoneGap, the ability to generate the event may be governed by other >platform specific ways of defining what orientations the application >supports. > > > >On Thu, Feb 2, 2012 at 11:48 AM, Drew Walters <deedu...@gmail.com> wrote: >> >> Is this implemented according to this spec or something different? >> >> http://dev.w3.org/geo/api/spec-source-orientation.html >> >> On Thu, Feb 2, 2012 at 1:43 PM, Filip Maj <f...@adobe.com> wrote: >> >> > Im sure it's all doable on the platforms, the question being posed is >> > "should this be part of the core cordova API?" >> > >> > I'm for it. >> > >> > If it's a yay, then we need to >> > >> > 1. Update the docs >> > 2. Update cordova-js >> > 3. Add support to each platform >> > >> > On 12-02-02 11:23 AM, "Jesse" <purplecabb...@gmail.com> wrote: >> > >> > >WP7 also supports this event via PhoneGap + polyfill. >> > > >> > > >> > >On Thu, Feb 2, 2012 at 9:46 AM, Shazron <shaz...@gmail.com> wrote: >> > > >> > >> on iOS it is supported on the UIWebView 4.2.x and greater but we >> > >> polyfill support for iOS 3.x (which we are planning to remove >>support >> > >> for, don't know exactly when, 1.5 is as good as any time) >> > >> >> > >> On Wed, Feb 1, 2012 at 1:25 PM, Filip Maj <f...@adobe.com> wrote: >> > >> > Are we supporting this as part of our API? Apparently iOS >>supports >it >> > >> whereas im pretty sure most other platforms do not. >> > >> > >> > >> > https://issues.apache.org/jira/browse/CB-213 >> > >> >> > >> >