Javascript function isn't getting executed in mobile browser -


i have simple java script validation checks length of characters in text field. it's working expected in ie, chrome, safari on desktop. not working on safari in iphone.

code:

scanproductonenter: function(     event, bevent, ctrl, args) {           if (         _iaseventutils.isenterpressed(         event)) {             this.scanproduct();         }          var barcodemodel = null;         var barcodedata = null;         barcodemodel = _scscreenutils.gettargetmodel(             this, "translatebarcode_input", null);             barcodedata = _scmodelutils.getstringvaluefrompath("barcode.barcodedata", barcodemodel);           var n = barcodedata.length;          if (n>='10') {             this.scanproduct();         }     } 

other observation is, java script gets triggered when enter 10 digits manually doesn't triggered when copy


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -