On Nov 30, 5:31 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> http://www.manifestinteractive.com/iphone/screen/
>
> Use Javascript and CSS to control the layout for your website based on
> the rotation of the Apple iPhone/Touch. This application will not run
> on a standard web browser. An iPhone/Touch is required. You can,
> however, view the source code with any browser.

A copule of thoughts:

It would be better to say that it requires a device and browser that
support orientation extensions - there may be other device makers and
browser vendors working on it right now.

In regard to the script, it uses setInterval to poll for orientation
changes - why not use the orientationchange event?  If you insist on
using polling, at least restrict it to browsers that support
window.orientation using something like:

  if (typeof window.orientation == 'string') {
    /* add handler */
  }

Why use scrollTo in the onload handler?

It may also be prudent not to expect all mobile devices to support the
same screen size as Apple's current browser-equipped mobile devices -
future iPhones and Touches may well have different screen sizes too.


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

Reply via email to