Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30115
| From | emf <emfril@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Eye exercises |
| Date | 2016-03-26 02:18 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nd59k2$1gdt$1@gioia.aioe.org> (permalink) |
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
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Eye exercises emf <emfril@gmail.com> - 2016-03-26 02:18 -0400 Re: Eye exercises emf <emfril@gmail.com> - 2016-03-26 04:59 -0400
csiph-web