Solved Event for mobile phone flip

Posted on 2014-09-04
Last Modified: 2014-09-08

I have a standard website application in Is there a way to trigger code when a mobile device is flipped 90 degrees, in other words from a Microsoft portrait view to a landscape view
Question by:murbro
  • 2
  • 2
LVL 12

Assisted Solution

by:Ammar Gaffar
Ammar Gaffar earned 200 total points
ID: 40303252
As I know, only client side code can do that, if you are using jQueryMobile in your application then visit this link:

Good Luck
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 40303300
  alert("The orientation has changed!");

Author Comment

ID: 40303430
I should have mentioned that my project uses code.
Thanks Ramkisan. Where would the code (which I assume is JavaScript) go
LVL 12

Accepted Solution

Ramkisan Jagtap earned 300 total points
ID: 40305087
Hi Murbro,

You can include this code on top or bottom of the aspx page.

<script type="text/javascript">
   alert("The orientation has changed!");

Author Closing Comment

ID: 40310722
Thank you both

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

705 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