mogoweb / chromium_webview

Android WebView wrapper based on chromium
http://mogoweb.github.com
BSD 3-Clause "New" or "Revised" License
514 stars 160 forks source link

JavaScript doesn't work #27

Closed minonger closed 9 years ago

minonger commented 9 years ago

Any javascript in HTML doens't work.

I have javascript setting set to true: webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

If I use classic webView it works but this chromium not.

mogoweb commented 9 years ago

@minonger: would you please give me some test pages or url?

mogoweb commented 9 years ago

I test the javascript's performance using Sunspider Javascript Benchmark, and the score is 1197.0ms +/- 2.8%. Javascript is supported.

minonger commented 9 years ago

@mogoweb Hi, try this in link. In standard webView is work but in this ch.view not. Maybe i do something wrong.. http://ulozto.net/xa1V9su2/desktop-zip

mogoweb commented 9 years ago

@minonger I have tried it, the javascript dialog is shown. You can get 365browser from http://android.myapp.com/myapp/detail.htm?apkName=com.mogoweb, which is built on chromium webview. You can also checkout the source at https://github.com/mogoweb/TintBrowser. I hope it is useful.

minonger commented 9 years ago

@mogoweb Hi, you was right ;). It's working. My problem was with some security. I was connecting to server with https and i used JQuery from another http server. After I download jquery library and put it to my code directory it start working :)

In my html before: script src="http://code.jquery.com/jquery-1.10.2.min.js"

now: script src="js/jquery-1.10.2.min.js"

Thanks for help!