Javascript arrays stored in server side files
<p>I'm writing a bit of javascript for a web-based medical game (basically very new to javascript, but I have experience with Java, and I've just been picking things up as I go). The idea is that each case (patient) has several fields of data, and the names of the fields are always the same ("Heart Rate", "Chest X-Ray", etc), but the data associated with the names depend on the specific case. In just building the basic functionality, I've been using an associative array, so when someone enters an element (say, "Blood Test A"), the results appear in another area of the screen.</p>

<p>So, when I start creating cases, I'd like to have each case be a separate file on the server side which just stores the array so I can load the array at the beginning of the case and use the general references (which all the arrays have) to get the specific values stored in the specific array. I guess the other option would be to have a single file with multiple versions of the array and somehow pass the specific array back to the page's script and write it to a local variable.</p>

<p>Thoughts? Thanks!</p>
