JavaScript works on Desktop but does not work on Android

0

I have a page in ASP.NET and this screen has a JavaScript function to allow only the typing of numbers in some fields.

When I run the Desktop (any browser) this function works correctly, but when I open this page in the Android browser the screen allows you to enter letters where it could not because it has the JavaScript function that should prevent this.

In other words, the JS function does not work in Android browsers (Default browser and Chrome). Note: The JavaScript function is active in both browsers.

Follow part of the page code ..

If you need more information I will arrange ..... Thanks for the help. Eduardo

    
asked by anonymous 21.07.2016 / 02:30

1 answer

1

Talk to Eduardo,

It would be good for you to post the code you are using in Java.

But you're probably using a webview, right? Make sure that after the webView declaration, you are putting this:

webView.getSettings().setJavaScriptEnabled(true);

Hugs.

    
21.07.2016 / 14:25