[ https://issues.apache.org/jira/browse/CB-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13605524#comment-13605524 ]
Ian Clelland commented on CB-2305: ---------------------------------- I've added the two APIs, {{InAppBrowser.executeScript}} and {{InAppBrowser.insertCSS}}, to iOS and Android. They both call a native method called {{InAppBrowser.injectScriptCode}}, which takes care of executing the incoming javascript the IAB window. It simply takes the code of a script to run; any stylesheet or external script encapsulation is done at the plugin's JavaScript layer. > Add InAppBrowser.executeScript() / InAppBrowser.insertCSS API > ------------------------------------------------------------- > > Key: CB-2305 > URL: https://issues.apache.org/jira/browse/CB-2305 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaJS > Reporter: Andrew Grieve > Assignee: Ian Clelland > Priority: Minor > > Maybe base it off of: > http://developer.chrome.com/extensions/tabs.html#method-executeScript > http://developer.chrome.com/extensions/tabs.html#method-insertCSS > (we can probably implement insertCSS all in JS by using executeScript) > var wnd = window.open('local.html', '_blank', 'location=yes'); > wnd.executeScript({runAt:'document_start', file:'extra.js'}, function(result) > { > alert(result); // result = (result of last statement). > }); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira