You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for this project ,In my case i should load the javascript files dynamically after loading the html page instead of writing the script tag directly in the html file but i have problem with jquery.js an error message "undefined" on the log .
this is a sample of code :
this.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url)
{
/* This call inject JavaScript into the page which just finished loading. */
Log.d("call","call java script");
loadUrl("javascript:(function() { "
+
"var script=document.createElement('script');" +
"script.type='text/javascript';" +
"script.src='file:///android_asset/jquery.js';"
+
"document.getElementsByTagName('head').item(0).appendChild(script);"+
"})()");
....
}
please help me .
}
);
The text was updated successfully, but these errors were encountered:
thank you for this project ,In my case i should load the javascript files dynamically after loading the html page instead of writing the script tag directly in the html file but i have problem with jquery.js an error message "undefined" on the log .
this is a sample of code :
this.setWebViewClient(new WebViewClient() {
please help me .
}
The text was updated successfully, but these errors were encountered: