Jessop
Junior Member
Posts: 2
Registered: 3/26/2003
Member Is Offline
|
| posted on 3/26/2003 at 03:51 PM |
|
|
Month
I found where to put the anchor tag for the month now I want the users to be able click on that month in the title area and automatically populate the
1st day of the month or any day in the month it doesn't matter because in my ASP code all I am going to use is the month and year. What variable
is used to designate the first day of the month? I found dt_firstday but think that, that is the first day displayed in the grid for that month but
it may or may not even be in that month selected. Ideas suggestions? Thanks in advance.
|
|
|
Jessop
Junior Member
Posts: 2
Registered: 3/26/2003
Member Is Offline
|
| posted on 3/26/2003 at 06:29 PM |
|
|
I figured it out
Change this line in the Calendar.html file:
'<td align="center" width="100%"><font color="#ffffff">'+ARR_MONTHS[dt_current.getMonth()]+'
'+dt_current.getFullYear() + '</font></td>'+
To:
'<td align="center" width="100%"><font color="#ffffff"><a
href="javascript:set_datetime('+dt_current_month.valueOf()+', true);">'+ARR_MONTHS[dt_current.getMonth()]+'
'+dt_current.getFullYear() + '</a></font></td>'+
And add this at the top of the file right below the get same date in the next month:
// get same date in the current month
var dt_current_month = new Date(dt_current);
dt_current_month.setMonth(dt_current_month.getMonth());
if (dt_current_month.getDate() != dt_current.getDate())
dt_current_month.setDate(0);
|
|
|