javascript - multicombo js in webview android -
i have multicombo selected value using js in website, test in desktop , android browser (chrome, mozilla, etc) ok,
but when trying make website android application using webview, multicombo doesn't work
i enable javascript in webview
webview = (webview) findviewbyid(r.id.webview1); websettings = webview.getsettings(); websettings.setjavascriptenabled(true); websettings.setjavascriptcanopenwindowsautomatically(true); webview.setwebviewclient(new client()); webview.setwebchromeclient(new webchromeclient()); public class client extends webviewclient { progressdialog progressdialog; public boolean shouldoverrideurlloading(webview view, string url) { view.loadurl(url); return false; } public void onreceivederror(webview view, int errorcode, string description, string failingurl) { view.loadurl("file:///android_asset/error_page/index.html"); //intent = new intent(mainactivity.this, errormessage.class); //startactivity(i); toast.maketext(getapplicationcontext(), "no conection server :(", toast.length_long).show(); } public void onreceivedsslerror(webview view, sslerrorhandler handler, sslerror error) { handler.proceed(); // ignore ssl certificate errors } public void onpagestarted(webview view, string url, bitmap favicon) { // show progress dialog // in standard case youractivity.this if (progressdialog == null) { progressdialog = new progressdialog(mainactivity.this); progressdialog.setmessage("loading..."); progressdialog.show(); } } public void onpagefinished(webview view, string url) { try { // close progressdialog if (progressdialog.isshowing()) { progressdialog.dismiss(); progressdialog = null; } } catch (exception exception) { exception.printstacktrace(); } } }
i using jquery version -2.1.3 , thank you.
Comments
Post a Comment