Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 870
  • Last Modified:

jQuery mobile page orientation

Hello Experts,

I am doing a simple mobile web application using jquery mobile.
I wounder if its possible to to prevent landscape view only on one of the pages (e.g. the start page)?

I am trying to use "orientationchange=flase". Not sure if i am doing the right thing though.

Can someone guide me?
0
Refael
Asked:
Refael
1 Solution
 
wal_toorCommented:
Hi,

Whell, the orientation is fired by the mobile browser itself, so as far as I know there is no way to deactivate this. But there are some jquery/css hacks for a workaround.

http://stackoverflow.com/questions/1207008/how-do-i-lock-the-orientation-to-portrait-mode-in-a-iphone-web-application

Hope some of these solutions work for you.

greetz,
walter
0
 
RefaelAuthor Commented:
Thanks! That was a helpful link.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now