Disable CipherLab 9700 Collector virtual keyboard via PHP

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

CipherLab 9700

It is running normally and doing what I want, the only thing I am not enjoying is that it keeps opening the digital keyboard and with this overlapping my form.

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

I could lock the virtual keyboard via PHP?

Follows 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>
Author: Guilherme Nascimento, 2016-06-28

1 answers

I remember that when I was in college I had to develop a script for mobile. At the time almost everyone 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 above code takes the focus from the input, then takes everything that is typed and puts it in the last focused field.

In practice it even works, but it needs to be improved to be used in projects. https://jsfiddle.net/s2ev69jz/9 /

 1
Author: Adriano Luz, 2016-06-28 21:44:12