Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

jQuery mobile page orientation

Posted on 2012-12-30
2
Medium Priority
?
865 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
wal_toor earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
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)
Suggested Courses

722 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