Skip to content

get data from outside #1

@Willi180

Description

@Willi180

Hello, I thank you for Your code. I have a Question.

`
myForm.addEventListener("submit", function (e) {
e.preventDefault();
const input = csvFile.files[0];
const reader = new FileReader();

  reader.onload = function (e) {
    const text = e.target.result;
    const data = csvToArray(text);
    document.write(JSON.stringify(data));
  };
  
  reader.readAsText(input);
});

`

how can I get data from outside for use it in anover functions as Parameter?

best regards
Wilhelm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions