Path: csiph.com!aioe.org!.POSTED!not-for-mail From: emf Newsgroups: comp.lang.javascript Subject: Eye exercises Date: Sat, 26 Mar 2016 02:18:43 -0400 Organization: Aioe.org NNTP Server Lines: 31 Message-ID: NNTP-Posting-Host: cRiaHmTAYnwAE9g5trOL/A.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 X-Notice: Filtered by postfilter v. 0.8.2 X-Mozilla-News-Host: news://news.aioe.org Xref: csiph.com comp.lang.javascript:30115 In my new version exercise 4 of the eye exercises http://emf.neocities.org/ix/ instead of having an array of the text, I've tried loading text.txt using reader.open(...) and thus create the array. But while this works fine locally and while JSlint finds no problems, it doesn't work on the website, and the Firefox Web Console gives the following error: TypeError: stanza[rndm] is undefined eyeExercise4.js:59:9 From what I've gathered, in the function loadData() the execution reaches data = reader.responseText; but then an alert(data); does not find it. Is there a way to make this version work on the web? Eustace -- The folk oratorios of Mikis Theodorakis http://emf.neocities.org/mt/folkoratorios.html