Disable virtual keyboard Cipherlab 9700 Collector via PHP

Asked

Viewed 420 times

1

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

Cipherlab 9700

He’s running normally and doing what I want, the only thing I’m not liking is that he keeps opening the digital keyboard and with that overlapping mine form.

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

I could block the virtual keyboard via PHP?

Follow the field of mine 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>

  • Which operating system does this device use?

  • Microsoft Windows CE Version: 6.00

1 answer

1


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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.