View Full Version : Loading Array from file
CHunt
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;
......
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.
CHunt
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"," ","PMYC");
etc.
Example at:
http://home.mindspring.com/~pmyc100/schedule.htm
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.