cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-2305) Add InAppBrowser.executeScript() / InAppBrowser.insertCSS API
Date Tue, 29 Jan 2013 15:15:13 GMT
Andrew Grieve created CB-2305:
---------------------------------

             Summary: 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
            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

Mime
View raw message