htmlnovice Posted June 26, 2006 Share Posted June 26, 2006 I'm new to Web design and wondered if anyone can tell me where to find a point-standing type JS. I want to have a 5 row, 4 column table that can be automatically updated by entering the data in the cells and the racers names will be automatically arranged in order by points. Am I dreaming or is there such a script? I guess it doesn't have to be that intense but it would be nice. Please help. Thanks. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 26, 2006 Share Posted June 26, 2006 does it need to update a database? Javascript can't do that on its own. You will need some server side scripting for that Link to comment Share on other sites More sharing options...
htmlnovice Posted June 26, 2006 Author Share Posted June 26, 2006 does it need to update a database? Javascript can't do that on its own. You will need some server side scripting for that<{POST_SNAPBACK}> No database just a simple table to add to the page and a quick update capability. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 26, 2006 Share Posted June 26, 2006 in order to 'update' the scorebaord you have to store the data somewhere. Link to comment Share on other sites More sharing options...
htmlnovice Posted June 26, 2006 Author Share Posted June 26, 2006 in order to 'update' the scorebaord you have to store the data somewhere.<{POST_SNAPBACK}> How is possible to just add a table that each racer can update themselves right from the web? I guess it doesn't need to be fancy just something I don't have to keep track of. The Website is just a little informal thing for friends. If I need to explore another option where would I start? Thanks for your time. Link to comment Share on other sites More sharing options...
scott100 Posted June 26, 2006 Share Posted June 26, 2006 How is possible to just add a table that each racer can update themselves right from the web? I guess it doesn't need to be fancy just something I don't have to keep track of. The Website is just a little informal thing for friends. If I need to explore another option where would I start? Thanks for your time.<{POST_SNAPBACK}> Unless you let them login to the site and update the html then your going to need a database and manipulate it through a server language. Link to comment Share on other sites More sharing options...
reportingsjr Posted June 26, 2006 Share Posted June 26, 2006 I think he means hes trying to create like a racing game with javascript, like a flash ame. It doesnt save anything.. but he wants a scoreboard for it. Is there like an orderby function or something? Link to comment Share on other sites More sharing options...
htmlnovice Posted June 26, 2006 Author Share Posted June 26, 2006 I think he means hes trying to create like a racing game with javascript, like a flash ame. It doesnt save anything.. but he wants a scoreboard for it. Is there like an orderby function or something?<{POST_SNAPBACK}> I just want a simple table that either myself or someone from the race teams can input their points after each week of racing. If I can find a simple JS that would only take a minute to update each week that would be great. However, if I have to know databases and server-side scripting I'm gonna have to tap out. Way over my head right now. Just a redneck trying to help out other rednecks. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 26, 2006 Share Posted June 26, 2006 You can make a form and do stuff with it with javascript but unless you update a database or text files then the data you enter won't go anywhere and will be losat when you close the browser.You cannot save the data without some server side code. Link to comment Share on other sites More sharing options...
htmlnovice Posted June 26, 2006 Author Share Posted June 26, 2006 You can make a form and do stuff with it with javascript but unless you update a database or text files then the data you enter won't go anywhere and will be losat when you close the browser.You cannot save the data without some server side code.<{POST_SNAPBACK}> Okay. Thanks for the help. Link to comment Share on other sites More sharing options...
htmlnovice Posted June 26, 2006 Author Share Posted June 26, 2006 Okay. Thanks for the help.<{POST_SNAPBACK}> I just thought a little harder about what you said. Can I save the data as a text file or something within my files for the web pages and have the JS refer to the text file? Or can I just go in and update the required info in the JS every week? If that's the case I can handle that. As long as I don't have to spend a week updating the info. 5 mins. max effort would be great. Any suggestions? Thanks. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 26, 2006 Share Posted June 26, 2006 you could only update files on your own PC with javascript. JavaScript is Clientside, menaing it can only affect things on your computer.You would probably have to change your file permissions to give javascript access but it is probably possible. Link to comment Share on other sites More sharing options...
aspnetguy Posted June 26, 2006 Share Posted June 26, 2006 here is a snippet of how to create a file in IE var fso = new ActiveXObject("Scripting.FileSystemObject");var myfile = fso.CreateTextFile("c:\\myfile.txt", true);myfile.WriteLine("Some test.");myfile.Close(); Link to comment Share on other sites More sharing options...
htmlnovice Posted June 26, 2006 Author Share Posted June 26, 2006 you could only update files on your own PC with javascript. JavaScript is Clientside, menaing it can only affect things on your computer.You would probably have to change your file permissions to give javascript access but it is probably possible.<{POST_SNAPBACK}> I'm tappin' out for good on this one. They don't need a point standing on the site that bad. Thanks again for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now