JavaScript in Android WebView not working
Question by Guest | 2013-09-22 at 17:30
Within an Android App, I would like to display a website using a standard WebView. So far, that is perfectly working, the site displays correctly.
The only problem: The site contains JavaScript code that is not running in the WebView. Can it be that the WebView can not display dynamic content? Or do I have to do something else to activate JavaScript in WebView?
Related Topics
Android Splash Screen Tutorial
Tutorial | 0 Comments
Android Table Layout with columns of equal width
Tutorial | 0 Comments
Android Programming: Send data via POST to WebView (e.g. to implement an automatic login)
Tip | 0 Comments
Android Getting Sound Levels
Open Question | 1 Answer
Android SDK Manager: Problem with installing packages "File not Found (Access is denied) Done. Nothing was installed"
Question | 4 Answers
Android: WebView does not display external web pages
Question | 1 Answer
jQuery: Scroll up and down with and without JavaScript
Tip | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
By default, JavaScript is disabled in the WebView.
Using the function setJavaScriptEnabled() you can change this behavior:
After this call, JavaScript should work.
2013-09-23 at 15:39