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 

Disabling Prev/Next buttons when out-of-range

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related
View previous topic :: View next topic  
Author Message
ron



Joined: 09 Aug 2007
Posts: 4
Location: Burlington, Vermont

PostPosted: Wed Sep 12, 2007 6:17 pm    Post subject: Disabling Prev/Next buttons when out-of-range Reply with quote

Is there a way to disable or remove the prev/next buttons when the month previous or month ahead is out-of-range? (I am using fInitRange to set the range)

Here are what i believe to be the relevant theme variables:

Code:

var gbHideTop=false;
var giDCStyle=1;
var gsCalTitle="gMonths[gCurMonth[1]-1]+' '+gCurMonth[0]";
var gbDCSeq=true;
var gsYearInBox="i";
var gsNavPrev="<INPUT type='button' value='&lt;' class='MonthNav' onclick='fPrevMonth(event);this.blur();'>";
var gsNavNext="<INPUT type='button' value='&gt;' class='MonthNav' onclick='fNextMonth(event);this.blur();'>";


Thank you.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Sep 12, 2007 11:07 pm    Post subject: Reply with quote

All you need is to set the id property of the navigator buttons to be "navPrev" and "navNext" accordingly. e.g.
Code:
var gsNavPrev="<INPUT id='navPrev' type='button' value='&lt;' class='MonthNav' onmousedown='showPrevMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>";
var gsNavNext="<INPUT id='navNext' type='button' value='&gt;' class='MonthNav' onmousedown='showNextMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>";

The range is determined by the gBegin and gEnd options.

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



Joined: 09 Aug 2007
Posts: 4
Location: Burlington, Vermont

PostPosted: Thu Sep 13, 2007 2:07 pm    Post subject: Thanks Reply with quote

That did the trick! Thank you.
This product is impressive. Nice work guys!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related 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