autoupdate 2017

Post here to discuss topics relate to the 4.x version for the ASP Football Pool software program. All support topics should go here.
Post Reply
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

autoupdate 2017

Post by Stutgrtguy »

Accidentally posted this is general, deleted and reposted here where it belongs

Tryin to get my site seaworthy, was doin some random tests, hit autoupdate and dallas vs giants were already a final in week 1! dont forget to change that line in "update scores.asp"

From

Code: Select all

var scoresUrlBase        = "http://www.nfl.com/scores/2016/REG"
to

Code: Select all

var scoresUrlBase        = "http://www.nfl.com/scores/2017/REG"
also if you use the scorestrip dont forget under /script/scoreboard.js

Code: Select all

var isPlayoffs = false;
Anything anyone else can remember for yearly trash cleanup?
I hate gettin old, I really should write all this down :roll:
mspslb
Posts: 17
Joined: Thu Sep 04, 2014 6:50 pm

Re: autoupdate 2017

Post by mspslb »

There is an easy update you can make so that you don't have to change the UpdateScores.asp page each year.
Where you normally change the year, add the first line below and then change the year (i.e. 2017) to be " + currentYear + " as in the 2nd line. This way it will get the current year for the URL automatically.

Code: Select all

		
var currentYear = new Date().getFullYear();
var scoresUrlBase        = "http://www.nfl.com/scores/" + currentYear + "/REG";
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: autoupdate 2017

Post by Stutgrtguy »

WOW! Thank you very much!
Post Reply