Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Month
Jessop
Junior Member

Posts: 2
Registered: 3/26/2003
Member Is Offline
posted on 3/26/2003 at 03:51 PM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
Jessop
Junior Member

Posts: 2
Registered: 3/26/2003
Member Is Offline
posted on 3/26/2003 at 06:29 PM Reply With Quote
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);
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004