View Full Version : Loading Array from file

01-08-2009, 10:31 PM
I want to create a file for loading an Array that will be used to create a table. How do you tell Javascript to read the file and assign the elements to the array ?

JS File : Date, Event, Location, Contact, Series;

01-09-2009, 02:33 AM
I wouldn't know how to do this using javascript - unless you used ajax or activex. PHP would be a better way to do this.

01-22-2009, 03:53 PM
I have answered my own question. In case anyone is interested.... you create a function to create the table. The .js file is created with the data calling the function.

function createtable(date,event,location,contact,series)

"races.js" file

createtable("March 7","Points Race","Elon,NC","&nbsp","PMYC");

Example at: