6 Replies Latest reply on Dec 6, 2012 5:46 AM by Pierre Lotin

    input type="number" not working

    Pierre Lotin

      Hi,

       

      I'm working on an application that I deploy on ET1 tablet. I can not display the numeric keypad to input fields of type "number" unless I remove the last line of my file build.yml

       

      app_type: "rhoelements"

       

      Why? How? What are the effects if I delete this line?

       

      Thx.

        • Re: input type="number" not working
          Derek Warren

          If you delete the "RhoElements" line by default the application will use the default rendering engine with the OS instead of the RhoElements runtime engine. (For Android and Windows Mobile/CE). Also by deleting the RhoElements line you will lose the enterprise features a RhoElements license provides. You can still use the RhoElements line but add the capability -native_browser to your build.yml to use the default rendering engine instead of RE.

           

          This input type currently doesn't seem to be a supported feature in the RhoElements runtime yet.

          1 of 1 people found this helpful
            • Re: input type="number" not working
              Darryn Campbell

              Just to clarify, if you're using the native_browser capability you will lose the RhoElements APIs, currently those are only accessible if you're using the Motorola rendering engine.  Moving forward we will be changing this to allow you to use the native browser with RhoElements APIs but that will not be in 2.2, it will be included in the next release.

               

              Also, we do not officially support native_browser on Windows Mobile / CE.

               

              You can use non-RhoElements APIs on the native browser on Android no problem.

              1 of 1 people found this helpful
              • Re: input type="number" not working
                Pierre Lotin

                Ok thank you.

                 

                Do you know any alternative? Use of a 3rd party v-keyboard maybe?

                 

                update: hand made solution

                 

                http://jsfiddle.net/pjaaar/6Zh2V/

                 

                update2: one more thing, how to not display any keyboard because even with readonly attribute it display the keyboard and i want to display only my custom keypad...?

                  • Re: input type="number" not working
                    Pierre Lotin

                    Ok i have a pb:

                     

                        <script>

                        $(document).ready(function(){

                          $('.on').click(function(){

                              sip.automatic();

                              alert('i will show the kb');

                          });

                          $('.off').click(function(){

                              sip.manual();

                            alert('i will show nothing');

                          });

                        });

                        </script>

                     

                     

                      <input type="text" />

                      <a data-role="button" class="on" >Automatic</a>

                      <a data-role="button" class="off" >Manual</a>

                     

                     

                    CAN'T FIND VARIABLE "sip"

                     

                    ->

                    SIP JAVASCRIPT OBJECT SYNTAX:
                    By default the JavaScript Object 'sip' will exist on the current page and can be used to interact directly with the sip.