7 Replies Latest reply on Oct 3, 2012 9:13 AM by Peter Arcuri

    JavaScript Confirm box not working with RhoElements

      Hi All,

       

      I am developing a web application using RhoElements (version 2.0.5.27) application.  The device is MOTOROLA MC9190G and the OS is Windows Mobile 6.5 Classic with CE OS 5.2.23121.

       

      Recently I found that the JavaScript confirm box did not return correct result (true) after clicking the 'Ok' button from the popup box every time.  Is it a known issue?  Or I should do it the other way?

       

      Here is a test script I use,


      <script>

      function TestConfirm()

      {

      var r = confirm("Press a button");

      if (r==true)

      {

      x="You pressed OK!";

      }

      else

      {

      x="You pressed Cancel!";

      }

      alert(x);

      }

      </script>

       

       

       

      Thanks,

      Joseph