Disable CipherLab 9700 Virtual Keyboard via PHP

1

I created 2 pages in PHP , to run on the collector:

CipherLab 9700

It's running normally and doing what I want, the only thing I'm not liking is that it opens the digital keyboard and thus overrides my form .

I can not directly disable the keyboard on the device because there are other applications that use it.

Could I block the virtual keyboard via PHP ?

Follow the field of my form , if necessary:

  <form class="form-horizontal" action="temp.php" method="post" name="frmControl">
  <fieldset>
    <div class="form-group">
      <label for="tag" class="col-lg-2 control-label">TAG</label>
      <div class="col-lg-3">
        <input type="text" class="form-control" id="tag" name="tag">
      </div>
    </div>
  </fieldset>
</form>
    
asked by anonymous 28.06.2016 / 16:57

1 answer

1

I remember when I was in college I had to develop a script for the cell phone. At the time almost all had physical keyboards, and the script had to do more or less the same thing.

$('#no_keyboard input').focus(function(){
    $('.focused').removeClass("focused");
    $(this).blur().addClass('focused');
    text = $('.focused').val();
});

$(window).keypress(function(e){
    if (e.which != 8){
        text = text+String.fromCharCode(e.which);
    }
    else{
       e.preventDefault();
       text = text.substring(0,text.length-1);
    }
    $('.focused').val(text);
});

The code above takes the focus of the input, then takes everything typed and places it in the last field in focus.

In practice it even works, but needs to be improved to be used in projects. link

    
28.06.2016 / 20:23