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

      <head>

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

      </head>

       

      <body onload="javascript:disablescreenorientation()"

      </body>

       

       

      <script type="text/javascript">

                      function disablescreenorientation()

                      {

                          alert("diable so");

                         screenOrientation.autoRotate = 'Disabled';

                       }

      </script>

       

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