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
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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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