Looking into the inAppBrowser code, it seems to me that the insertCSS and
executeScript are for injecting an external CSS or JS, but looking at the
code example, it seems (to me), that an internal file could be loaded
insertCSS example code:
var ref = window.open('http://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstop', function() {
ref.insertCSS({file: "mystyles.css"});
});
executeScript example code:
var ref = window.open('http://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstop', function() {
ref.executeScript({file: "myscript.js"});
});
So, can anybody confirm if this two functions are only for external
files? or is it possible to load files from www folder?
If only external files are possible, then maybe we should change the
example codes to something like
var ref = window.open('http://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstop', function() {
ref.insertCSS({file: "http://www.example.com/mystyles.css"});
});