demo100, on 06 May 2010 - 01:24 PM, said:
What I would like is simple, to be able to add stats on a daily basis without having to recode the HTML.
It is possible, but it is not something that is suitable for JavaScript. What you desire runs along the same concept of the design pattern known as Model-View-Controller. In this case, the model would be the stats information of each player; the view is what renders the data into something viewable, that is, HTML; the controller is what keeps track of the model and view. The view has to be designed with the model in mind; if the model holds a tree-like structure, the view has to be able to work with tree structures. I think a tree model would fit your needs fine. As new data is added to the model, the view will dynamically adjust and display the data the way it is designed to. Hence you would not need to worry about any extra data added to the model, since the model would be designed to store data in one way, which the view was made to iterate through.
JavaScript is a client-side scripting language, therefore the only place fitting for it is the view; it cannot touch on the model, nor can it be part of the controller. Therefore you will need know a server-side scripting language, one that is supported by your web host. Given the site you provide, it seems PHP would be that language. I have no idea of how many others are working with you on the same project, but you'll have to come up with a way for everything to work together. If you're the only one working on this, then though you say you lack programming skill, it would seem that you at least know some PHP. In either case, i would suggest making use of PHP's object oriented programming for this job.