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: [SOLVED] Yet another date-range question....
ScotDiddle
Member

Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
posted on 3/27/2009 at 11:22 AM Reply With Quote
[SOLVED] Yet another date-range question....


Hi All,

My graphing application works fine, except when the user wants to graph more than 30 days worth of data to display... ( PHP runs out of memory )

If allowed dates include all 365 days in 2008, and the user selects Jan 1 as the starting date, how can I ensure that the date-ending calandar ( a second calandar object ) has every dated after Jan 31, 2008 dis-allowed ?

How can I set : 'maxdate': 01/31/2008' progrmatically for the second calendar when the user selects a starting date in the first calendar ?


I am currently using the softcomplex.com supplied date-range function...

Code:


function setDateRangeAOR1() {

if(showMeDaMoney) {
alert('In: setDateRangeAOR1 for AOR1Start and AOR1End');
alert(AOR1Start.TC0L);
alert(AOR1End.TC0H);
}

tomorrow = AOR1Start.TC0L.valueOf() + 864e5;

AOR1End.TC0H = AOR1Start.TC0L;
if (AOR1Start.TC0L > AOR1End.TC0L) {
AOR1End.TC0L = tomorrow;
}
AOR1End.TC2D();
}



Is this even possible ?

Thanks,

Scot L. Diddle, Richmond VA
View User's Profile View All Posts By User U2U Member
ScotDiddle
Member

Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
posted on 3/30/2009 at 05:00 PM Reply With Quote
[SOLVED] Yet another date-range question....


Hello All You Tigra Calendar Enthusiasts,

My help-desk ticket was answered in a timely manner.

I was defining my maxdate parm as an integer:

twoWeeksFromNow = AOR1SingleStart.TC0L.valueOf() + (14 * 864e5);

They said I had to define it as a date...

twoWeeksFromNow = new Date(AOR1SingleStart.TC0L.valueOf() + (14 * 864e5));

I then pass that value, and the second date range cal maxdate is equal to two weeks out from whatever the user selected as thier starting date !

AOR1SingleEnd.TC0F = twoWeeksFromNow;

Worked like a champ.

Thanks Tigra Admin.

Scot L. Diddle, Richmond VA
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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