Solved

jQuery mobile page orientation

Posted on 2012-12-30
2
857 Views
Last Modified: 2014-04-23
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
Comment
Question by:Refael
2 Comments
 
LVL 8

Accepted Solution

by:
wal_toor earned 500 total points
ID: 38732341
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
 

Author Closing Comment

by:Refael
ID: 38732757
Thanks! That was a helpful link.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, we decided that in order to stay competitive in today's IT world, we were going to have to develop and deploy a mobile app for our users and do it quickly. We felt that we were already behind the curve. Users of technology today are mov…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question