Advanced Search

Results 1 to 3 of 3

Thread: Loading Array from file

  1. #1
    Join Date
    Aug 2007
    Location
    North Carolina
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Loading Array from file

    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;
    ......

  2. #2
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    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.
    Jeremy | jfein.net

  3. #3
    Join Date
    Aug 2007
    Location
    North Carolina
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Talking Problem solved

    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");
    etc.

    Example at:
    http://home.mindspring.com/~pmyc100/schedule.htm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •