Note that there are some explanatory texts on larger screens.

plurals
  1. POHtml5 filereader - read local Json Array file and display only a specific section
    text
    copied!<p>I'm a beginner and come form VBA excel programming tool. Reading excel file, manipulating excel content is a lot easier in VBA than the web tool like Filereader and Json array.</p> <p>I have the following content in my Json array file.</p> <pre><code>[ ["TWE",6000,4545.5 ], ["RW",1000,256.3 ] ] </code></pre> <p>I would like to read from the following html file and display only the value 253.6</p> <p>Can you help me.</p> <p>Here the Html file reader example</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script&gt; function handleFileSelect() { if (window.File &amp;&amp; window.FileReader &amp;&amp; window.FileList &amp;&amp; window.Blob) { } else { alert('The File APIs are not fully supported in this browser.'); return; } input = document.getElementById('fileinput'); if (!input) { alert("Um, couldn't find the fileinput element."); } else if (!input.files) { alert("This browser doesn't seem to support the `files` property of file inputs."); } else if (!input.files[0]) { alert("Please select a file before clicking 'Load'"); } else { file = input.files[0]; fr = new FileReader(); fr.onload = receivedText; fr.readAsText(file); } } function receivedText() { //result = fr.result; document.getElementById('editor').appendChild(document.createTextNode(fr.result)) } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="file" id="fileinput"/&gt; &lt;input type='button' id='btnLoad' value='Load' onclick='handleFileSelect();'&gt; &lt;div id="editor"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload