I am currently working on an application that handles a fairly large amount of data. Currently, I\'ve hard-coded those values into the Javascript iself (defining global arra
Use AJAX. I suggest encoding the file in JSON format, rather than plain text. If you use jQuery, you can then use $.getJSON('filename.txt') to read the file and parse it into a Javascript object in one operation.