I have this code that opens a local file, but I would like to open a file from the server without needing input.
HTML:
<input type="file" onchange="run(this.files[0]);">
Javascript:
function run(file) {
xyz.loadRomFromFile(file, function(result) {
if (result) {
for (var i = 0; i < runCommands.length; ++i) {
runCommands[i]();
}
runCommands = [];
xyz.runStable();
}
});
}