Contact Information
- Email: ctoohey@dominoguru.com
- BleedYelow.com: Chris Toohey
- Skype: ChrisToohey
- Gizmo: ChrisToohey
- Yahoo!: ChrsToohey
- Google: ChrsToohey
- AIM: ChrisToohey
- Twitter: ChrisToohey
- Facebook: ChrisToohey
My Twitter Updates
Publishings
Remove my name from the Domino Directory!! 02/05/2008Lotus Notes Quick and Dirty Mail Application Document Importing 01/24/2008
Methods and Strategies Addressing Domino Web-based @DBLookup limitations with Rich-Text and Context Profiles 12/16/2007
Domino Web Development Dynarch Calendar - Date Blockers 01/25/2007
Integrated Solutions Domino Flex Fields 11/03/2006
Methods and Strategies Publishings Archive
Examples & Downloads
Lotus Notes Client Wizard - Components Example Database 04/11/2008Lotus Notes Updated: Quick and Dirty Mail Application Document Importing Example Database 01/29/2008
Examples and Downloads Quick and Dirty Mail Application Document Importing Example Database 01/27/2008
Lotus Notes Excel Export Example Database 08/12/2007
Integrated Solutions Domino Flex Fields (Example) 11/17/2006
Methods and Strategies E & D Archive
Resources
Alan Lepofsky's Notes Tips [ Community ] Chris' The Business Controls Caddy [ Community ] Petr Stanicek [pixy] [ CSS ] JoeLitton.net [ Community ] Alex Hernandez's Weblog [ Community ] Resources ArchiveDynarch Calendar - Date Blockers
01/25/2007 03:56:59 PM | Mike Smelser | Atlanta, GA
A client of mine has a "Time & Attendance" database that I was updating the code to be a little more web-savvy. Using the open source DHTML calendar from Dynarch, I was able to give a pretty snazzy looking calendar tool. But the functionality of the time sheets called for the user to select a Sunday as the start date for the timesheet, and if they did not it would alert them to make another selection. Instead of doing this, I decided to only allow the user to select a Sunday from the DHTML calendar itself and, along with the assistance of the DominoGuru himself, came up with the JavaScript function to add to the calendar to achieve this.
This particular calendar has the functionality built in to run a JavaScript function to basically "turn off" dates you do not want to have available. So I used the code below to turn off all dates except Sundays:function dateStatus(date) {
if (date.getDay() != 0) {
return true; // true says "disable"
} else {
return false; // leave other dates enabled
}
}
...then in the Calendar.setup code I added this:Calendar.setup(and BINGO!
{
inputField:"calendar_date",
ifFormat:"%m/%e/%Y",
button:"calendar_trigger",
align:"BR",
singleClick:"false",
dateStatusFunc:dateStatus
}
)

Michael Smelser
Lotus Notes/Domino Application Developer
Lotus911
770.517.0092 (phone) | 404.663.1058 (cell) | 678.594.6756 (fax)
http://www.Lotus911.com
Chris Toohey | Domino Guru


