-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
The code run like
Step 1 -> Step 3 -> Step 2
I need to know the TypeArq content after reading the file, ie synchronous manner.
However, the contents of TypeArq return anything.
The Code:
var TypeArq = ""
alert("Step 1");
FileReaderJS.setSync(true);
FileReaderJS.setupInput(document.getElementById('input'), {
readAsDefault: "Text",
on: {
load: function(e, file) {
TypeArq = e.target.result.substring(1,8);
console.log("Funcionou--->" + e.target.result.substring(1,8));
alert("Step 2");
}
}
});
alert("Step 3");
alert(TypeArq)
Metadata
Metadata
Assignees
Labels
No labels