[ 
https://issues.apache.org/jira/browse/CB-8361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-8361.
----------------------------
    Resolution: Won't Fix

Modifying the DOM by modifying the WebView itself is not supported behaviour on 
Cordova.  There are other ways to accomplish your task, and this is technically 
not a Cordova issue.  I recommend going to StackOverflow for advice on what you 
are trying to do.

> The use of phonegap WebView JS injection in the Android 4.3 system version, 
> return the results of delays, that is to use JS loadurl method to load caused 
> by thread occlusion, how to solve?
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-8361
>                 URL: https://issues.apache.org/jira/browse/CB-8361
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.6.3
>         Environment: cordova 3.6.3 
> android 4.3
>            Reporter: space
>              Labels: 4d
>             Fix For: 3.6.3
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> JS injection in the onpageFinsh method in WebView
> This is my code
> public void onPageFinished(WebView view, String arg1) {
> // TODO Auto-generated method stub
>             setTitle(cordovaWebView.getTitle());
>             if (!TextUtils.isEmpty(jsStr)) {
>                 final StringBuilder js = new StringBuilder();
>                 js.append(
>                         "var newscript = document.createElement(\"script\");")
>                         .append(jsStr)
>                         .append("document.body.appendChild(newscript);");
>                 if (android.os.Build.VERSION.SDK_INT < 19) {
>                     cordovaWebView.loadUrl("javascript:" + js.toString());
>                 } else {
>                     cordovaWebView.evaluateJavascript(
>                             "javascript:" + js.toString(), null);
>                 }
>             }
>         }
> Android 4.4 using evaluateJavascript does not appear to delay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to