6 Replies Latest reply on Jul 24, 2013 8:20 AM by Adam Henrickson

    Screen Orientation Disable on Windows Mobile

      HI All,


      I have Motorola 319Z and i did not require auto rotation screen orientation on my device .


      I set layout.erb file as


           <META HTTP-Equiv="ScreenOrientation" content="[orientation]">



      <body onload="javascript:disablescreenorientation()"




      <script type="text/javascript">

                      function disablescreenorientation()


                          alert("diable so");

                         screenOrientation.autoRotate = 'Disabled';




      But it is showing only alert but not stopping screen for orientation.