jQuery mobile page orientation

Refael
Refael used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
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

Author

Commented:
Thanks! That was a helpful link.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial