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:Murray Brown
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

by:Murray Brown
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

by:Murray Brown
ID: 40310722
Thank you both

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

630 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