Solved

jQuery mobile page orientation

Posted on 2012-12-30
2
853 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
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)

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now