Page 1 of 1

Weekly Results Display

Posted: Sat Sep 07, 2019 9:28 am
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

Re: Weekly Results Display

Posted: Mon Sep 09, 2019 7:56 pm
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>

Re: Weekly Results Display

Posted: Mon Sep 30, 2019 8:15 am
by kingmullet
Sorry, I'm sure you posted this before, but where do you put the code for this to display?

Re: Weekly Results Display

Posted: Mon Sep 30, 2019 10:22 am
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)">