Weekly Results Display

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
fbonani
Posts: 50
Joined: Thu Aug 15, 2019 12:07 pm

Weekly Results Display

Post by fbonani »

After One game, my Weekly Results page displays the data sorted by players alphabetically. I just realized that I could click on the Scores column and it will display in sort order by that column. However, does this page display in Score order after all the games are played for that week? If not, how do I make that happen. This is my first year working with asp files and so far I am baffled. See the attached screen shot.
sort.jpg
User avatar
Russaholic
Posts: 58
Joined: Tue Oct 15, 2013 3:19 pm
Contact:

Re: Weekly Results Display

Post by Russaholic »

Here is the code for setting the sort by wins

Code: Select all

<%	end if %>
	//]]>
	// Execute the pick sort as soon as the page loads.	
	domUtils.onready(function() 
	{		
		tableSort.sort(resultsScoreSort);	
	}
	);
	</script>
<!-- #include file="includes/custom.asp" -->
</head>
kingmullet
Posts: 59
Joined: Thu Sep 05, 2013 3:21 pm

Re: Weekly Results Display

Post by kingmullet »

Sorry, I'm sure you posted this before, but where do you put the code for this to display?
User avatar
fbonani
Posts: 50
Joined: Thu Aug 15, 2019 12:07 pm

Re: Weekly Results Display

Post by fbonani »

What I did was to change line 260 in the weeklyResults.aps as follows:

Code: Select all

<body onload="return tableSort.sort(resultsScoreSort)">
In your file, it may be on a different line. If that doesn't work, the code listed by Russaholic goes right above line 260.

BTW, I changed line 220 of the weeklySummary.asp file as follows to sort the summary page high to low:

Code: Select all

<body onload="return tableSort.sort(statisticsPicksSort)">
Post Reply