smdavis
08-29-2003, 12:37 AM
I'm working on a website which will contain a kind of "gig guide" (info about events going on around town) that we want to be updated dynamically. There is a newsletter editor in charge of getting updated gig information, but he has no experience in HTML or webpage creation. What we want is for him to be able to upload a text file (eg: gigguide.txt) with the updated information in plain text format (probably with the necessary delimiters), and then the webpage would use javascript to read this file, convert it into HTML and display it appropriately. This way, our newsletter editor doesn't need to go anywhere near HTML or other coding. He would just have to prepare this text file in the format we show him, and upload that to the server. In the webpage itself, the gig guide would be text contained in the cell of a table. This wouldn't just be picking up a chunk of text from a text file and dumping it into the webpage though. It would need to be properly formated with the correct spacing. An example of the type of entries might be something like this:
Saturday, 3pm
Sinatra @ The Underground
www.somewhere/sinatra.html
Sunday, 8pm
Kelly @ Lux
www.somewhere/kelly.html
Any ideas on how this can be done?
Saturday, 3pm
Sinatra @ The Underground
www.somewhere/sinatra.html
Sunday, 8pm
Kelly @ Lux
www.somewhere/kelly.html
Any ideas on how this can be done?