View previous topic :: View next topic |
Author |
Message |
ron
Joined: 09 Aug 2007 Posts: 4 Location: Burlington, Vermont
|
Posted: Wed Sep 12, 2007 6:17 pm Post subject: Disabling Prev/Next buttons when out-of-range |
|
|
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='<' class='MonthNav' onclick='fPrevMonth(event);this.blur();'>";
var gsNavNext="<INPUT type='button' value='>' class='MonthNav' onclick='fNextMonth(event);this.blur();'>";
|
Thank you.
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Sep 12, 2007 11:07 pm Post subject: |
|
|
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='<' class='MonthNav' onmousedown='showPrevMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>";
var gsNavNext="<INPUT id='navNext' type='button' value='>' 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 |
|
|
ron
Joined: 09 Aug 2007 Posts: 4 Location: Burlington, Vermont
|
Posted: Thu Sep 13, 2007 2:07 pm Post subject: Thanks |
|
|
That did the trick! Thank you.
This product is impressive. Nice work guys!
|
|
Back to top |
|
|
|