- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have make hybrid html app i want to show all pages in potriot mode while for just one page i want to allow auto rotate , how can i do this please guide
- Tags:
- HTML5
- Intel® XDK
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think this person has been down this path before you:
http://stackoverflow.com/questions/10361070/phonegap-disable-screen-rotate-on-single-page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i tried below code but it is not working
<script src="intelxdk.js" type="text/javascript"></script> <script> document.addEventListener("intel.xdk.device.ready", onDeviceReady, false); function onDeviceReady(){ intel.xdk.device.setRotateOrientation('landscape'); } </script>
but it seems not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you included the Intel XDK device plugin in the Projects page? To fix the orientation to landscape above code is correct. To release the fix orientation use
intel.xdk.device.setRotateOrientation("any");

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page