Bookmark: Changing the iPhone Orientation in JavaScript

written by Al on Saturday, December 29 2007

I am writing new web apps for my iPhone, doing GIS on the iPhone is interesting, but you need to make a few modification on the HTML to get all the power from your iPhone, the first one is displaying the map with the Orientation the user ones. The code to do that can be found on the Apple website:

"iPhoneOrientation" llustrates how to respond to iPhone or iPod touch orientation events, determine iPhone current orientation, and dynamically display a descriptive message and adjust styling on a webpage according to the device's current orientation.

Cheers

Al

 

Similar Posts

  1. iPhone bluetooth feature broken for music on firmware 1.1.3.
  2. iPhone and AT&T reviewed after 2 months of service
  3. Apple TV was a big disappointment

Comments are closed

Options:

Size

Colors