CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to disable dates in the past?

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q.
View previous topic :: View next topic  
Author Message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Tue Feb 15, 2005 6:38 pm    Post subject: How to disable dates in the past? Reply with quote

Simply set the gBegin option to gToday in theme-name.js file, as following:
Code:
var gBegin=gToday;
var gEnd=[2030,12,31];

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
mpersinger



Joined: 15 Sep 2006
Posts: 2
Location: Missouri

PostPosted: Fri Mar 16, 2007 10:40 pm    Post subject: Hrm, Tried this and it did not work Reply with quote

I added changed this:
var gBegin=[1980,1,1];

to this:
var gBegin=[gToday];

and it disabled ALL days, past, present, future. Put lines thru all of them. Will not let me select any of them.

What did I do wrong?

Monte

_________________
Monte
Back to top
View user's profile Send private message Visit poster's website
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Fri Mar 16, 2007 10:50 pm    Post subject: Reply with quote

Obviously, there should be no brackets around the gToday.

Code:
var gBegin=gToday;

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
mpersinger



Joined: 15 Sep 2006
Posts: 2
Location: Missouri

PostPosted: Fri Mar 16, 2007 10:57 pm    Post subject: Thanks Reply with quote

Obviously I missed that one.

Thanks

_________________
Monte
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q. All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group