Re: dynamically filling a calendar
Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
Oo, me too, pleassse :) Could you include me in on that colander code (possibly post it to the list?) Kevin Queen Software Engineer Synthetic Logic "Ah, I see!", said the blind man to the deaf mute. -Unknown -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 11:36 AM To: CF-Talk Subject: Re: dynamically filling a calendar Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
I also would like the code -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 10:36 AM To: CF-Talk Subject: Re: dynamically filling a calendar Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
Please doalso, is there somewhere i can view the article? On Fri, 06 Oct 2000, Kevin Schmidt spake thusly: Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
colander code? Are we cooking here? ;-) - Original Message - From: "Kevin Queen" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 10:38 AM Subject: RE: dynamically filling a calendar Oo, me too, pleassse :) Could you include me in on that colander code (possibly post it to the list?) Kevin Queen Software Engineer Synthetic Logic "Ah, I see!", said the blind man to the deaf mute. -Unknown -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 11:36 AM To: CF-Talk Subject: Re: dynamically filling a calendar Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
Yes, post it to the list please. I am in desperate need of something that does exactly that :) Todd Ashworth - Original Message - From: "Kevin Queen" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 10:38 AM Subject: RE: dynamically filling a calendar | Oo, me too, pleassse :) | | Could you include me in on that colander code (possibly post it to the | list?) | | Kevin Queen | Software Engineer | Synthetic Logic | | | "Ah, I see!", said the blind man to the deaf mute. -Unknown | | | -Original Message- | From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] | Sent: Friday, October 06, 2000 11:36 AM | To: CF-Talk | Subject: Re: dynamically filling a calendar | | | Jon, | | I just finished writing an article for CFDJ on this very thing. I would be | more than willing to send you the code that generates the calendar as well | as populates it from a Database of events. | | Kevin | - Original Message - | From: "Jon Tillman" [EMAIL PROTECTED] | To: "CF-Talk" [EMAIL PROTECTED] | Sent: Friday, October 06, 2000 9:24 AM | Subject: dynamically filling a calendar | | | Hey folks, | I have a calendar(as part of a scheduling app) that I need to fill in | dynamically. | What I am trying to do is to allow the user to select any month in any | year and | have the table filled out with the correct "month view" layuot. | Is there a way to compare the results of the DateFormat() function OR a | variable to the position of the table cell (both row and column) so as to | determine where the individual dates should be? | | Any help would be greatly appreciated. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
The article will most likely appear in the December issue of Cold Fusion Developers Journal or possible the January issue depending on their size constraints. To all who have requested the code I will send it out this afternoon. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:47 AM Subject: Re: dynamically filling a calendar Please doalso, is there somewhere i can view the article? On Fri, 06 Oct 2000, Kevin Schmidt spake thusly: Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
The CF date functions make this kind of stuff really, really easy. I made a calendar app a few months ago to pass the time while waiting for a contract with eCal to be signed. It ended up being far better than eCal's app, but we didn't really need a calendar in the end. If I remember, the most difficult thing was figuring out how to deal with months that start on Friday, months with 29 days, etc... which wasn't really too bad. ;) Some useful functions: CreateDate(year, month, day) FirstDayOfMonth(date) DaysInMonth(date) DateAdd(datepart, number, date) Ed -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --_=_NextPart_001_01C02FA7.3FA4E930 Content-Type: text/plain; charset="iso-8859-1" At risk of sounding like I am jumping on the "I'd like the code/article too," bandwagon (gee what was that sound) I would love to see/have/covet same! Jon Moneymaker (and yes, that really is my last name) Programmer and Web Designer Hopeful/Wannabe -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 11:36 AM To: CF-Talk Subject: Re: dynamically filling a calendar Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --_=_NextPart_001_01C02FA7.3FA4E930 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1" META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2652.35" TITLERE: dynamically filling a calendar/TITLE /HEAD BODY PFONT SIZE=3D2At risk of sounding like I am jumping on the = quot;I'd like the code/article too,quot; bandwagon (gee what was that = sound)/FONT/P PFONT SIZE=3D2I would love to see/have/covet same!/FONT /P PFONT SIZE=3D2Jon Moneymaker (and yes, that really is my last = name)/FONT BRFONT SIZE=3D2Programmer and Web Designer Hopeful/Wannabe/FONT /P PFONT SIZE=3D2-Original Message-/FONT BRFONT SIZE=3D2From: Kevin Schmidt [A = HREF=3D"mailto:[EMAIL PROTECTED]"mailto:[EMAIL PROTECTED]/A]/FONT BRFONT SIZE=3D2Sent: Friday, October 06, 2000 11:36 AM/FONT BRFONT SIZE=3D2To: CF-Talk/FONT BRFONT SIZE=3D2Subject: Re: dynamically filling a calendar/FONT /P BR PFONT SIZE=3D2Jon,/FONT /P PFONT SIZE=3D2I just finished writing an article for CFDJ on this = very thing.nbsp; I would be/FONT BRFONT SIZE=3D2more than willing to send you the code that = generates the calendar as well/FONT BRFONT SIZE=3D2as populates it from a Database of events./FONT /P PFONT SIZE=3D2Kevin/FONT BRFONT SIZE=3D2- Original Message -/FONT BRFONT SIZE=3D2From: quot;Jon Tillmanquot; = lt;[EMAIL PROTECTED]gt;/FONT BRFONT SIZE=3D2To: quot;CF-Talkquot; = lt;[EMAIL PROTECTED]gt;/FONT BRFONT SIZE=3D2Sent: Friday, October 06, 2000 9:24 AM/FONT BRFONT SIZE=3D2Subject: dynamically filling a calendar/FONT /P BR PFONT SIZE=3D2gt; Hey folks,/FONT BRFONT SIZE=3D2gt; I have a calendar(as part of a scheduling app) = that I need to fill in/FONT BRFONT SIZE=3D2gt; dynamically./FONT BRFONT SIZE=3D2gt; What I am trying to do is to allow the user to = select any month in any/FONT BRFONT SIZE=3D2year and/FONT BRFONT SIZE=3D2gt; have the table filled out with the correct = quot;month viewquot; layuot./FONT BRFONT SIZE=3D2gt; Is there a way to compare the results of the = DateFormat() function OR a/FONT BRFONT SIZE=3D2gt; variable to the position of the table cell = (both row and column) so as to/FONT BRFONT SIZE=3D2gt; determine where the individual dates should = be?/FONT BRFONT SIZE=3D2gt;/FONT BRFONT SIZE
RE: dynamically filling a calendar
I wouldn't mind a copy of that also. Larry Juncker Senior Cold Fusion Programmer Heartland Communications Group, Inc. -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 11:02 AM To: CF-Talk Subject: Re: dynamically filling a calendar The article will most likely appear in the December issue of Cold Fusion Developers Journal or possible the January issue depending on their size constraints. To all who have requested the code I will send it out this afternoon. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:47 AM Subject: Re: dynamically filling a calendar Please doalso, is there somewhere i can view the article? On Fri, 06 Oct 2000, Kevin Schmidt spake thusly: Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
I recently wrote a calendar application that allows Day, Week, Month, Year with events scheduled per day. The trickiest part was setting up the months to look like an actual month. That is to start your day in which table column. Like if your month starts on a Friday then the first has to show up on a Friday. There is a really easy way to achieve this, and after I figured out this part it was a cake walk:) It is the DayOfWeek function :) So say your date 10.1.00 which happens to fall on saturday, so this would return 1 which means your offset for that day is one, meaning it belongs in the first column. try it with 11.1.00 which falls on a Wednesday DayOfWeek returns 4 for this date meaning your day belongs in the 4th column. :) This avoids doing any complex logic to figure this out. Basically you can display a calendar month with only one loop with x iterations (x being the number of days in the month) which makes it rather effecient ( I then had one more inner loop to handle checking for events ) So I was pleased with the speed of the calendar I have seen some that were terribly slow :) Here is a little snippet so you guys dont maul me :P Also with this logic you can figure out how many days the end will be by figuring out the day of the week for the last day in the month. That is pretty much all of the tricky stuff to doing a calendar, year views are easy since you already have a nice tight way to display months. So as Ed said its eeasy :) Ive written equivalent stuff in C and the math can drive you insane, really really CF has some of the nicest date functions around. Jeremy Allen [EMAIL PROTECTED] -Original Message- From: Ed Toon [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 11:05 AM To: CF-Talk Subject: RE: dynamically filling a calendar The CF date functions make this kind of stuff really, really easy. I made a calendar app a few months ago to pass the time while waiting for a contract with eCal to be signed. It ended up being far better than eCal's app, but we didn't really need a calendar in the end. If I remember, the most difficult thing was figuring out how to deal with months that start on Friday, months with 29 days, etc... which wasn't really too bad. ;) Some useful functions: CreateDate(year, month, day) FirstDayOfMonth(date) DaysInMonth(date) DateAdd(datepart, number, date) Ed -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
I would also like the code. Winston - Original Message - From: "Kevin Schmidt" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:02 AM Subject: Re: dynamically filling a calendar The article will most likely appear in the December issue of Cold Fusion Developers Journal or possible the January issue depending on their size constraints. To all who have requested the code I will send it out this afternoon. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:47 AM Subject: Re: dynamically filling a calendar Please doalso, is there somewhere i can view the article? On Fri, 06 Oct 2000, Kevin Schmidt spake thusly: Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
I'd like to see it as well. tom The article will most likely appear in the December issue of Cold Fusion Developers Journal or possible the January issue depending on their size constraints. To all who have requested the code I will send it out this afternoon. Kevin -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
There is a sample calendar that Figleaf demonstrated at the September CFUG using Flash 5 and WDDX. It is at www.figleaf.com/figleafhome/cfug/cfugsep2000.zip dave At 10:24 AM 10/6/00 -0400, you wrote: Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
this sounds cool - please email me! -- Gavin Lilley Internet / Intranet Developer Halesowen College Tel: 0121 550 1451 Ext: 330 -Original Message- From: Todd Ashworth [mailto:[EMAIL PROTECTED]] Sent: 06 October 2000 16:06 To: CF-Talk Subject: Re: dynamically filling a calendar Yes, post it to the list please. I am in desperate need of something that does exactly that :) Todd Ashworth - Original Message - From: "Kevin Queen" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 10:38 AM Subject: RE: dynamically filling a calendar | Oo, me too, pleassse :) | | Could you include me in on that colander code (possibly post it to the | list?) | | Kevin Queen | Software Engineer | Synthetic Logic | | | "Ah, I see!", said the blind man to the deaf mute. -Unknown | | | -Original Message- | From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] | Sent: Friday, October 06, 2000 11:36 AM | To: CF-Talk | Subject: Re: dynamically filling a calendar | | | Jon, | | I just finished writing an article for CFDJ on this very thing. I would be | more than willing to send you the code that generates the calendar as well | as populates it from a Database of events. | | Kevin | - Original Message - | From: "Jon Tillman" [EMAIL PROTECTED] | To: "CF-Talk" [EMAIL PROTECTED] | Sent: Friday, October 06, 2000 9:24 AM | Subject: dynamically filling a calendar | | | Hey folks, | I have a calendar(as part of a scheduling app) that I need to fill in | dynamically. | What I am trying to do is to allow the user to select any month in any | year and | have the table filled out with the correct "month view" layuot. | Is there a way to compare the results of the DateFormat() function OR a | variable to the position of the table cell (both row and column) so as to | determine where the individual dates should be? | | Any help would be greatly appreciated. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
--91DB15578B9139D87680618A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Me too, Please Thanks! Bryan Kevin Schmidt wrote: Jon, I just finished writing an article for CFDJ on this very thing. I would be more than willing to send you the code that generates the calendar as well as populates it from a Database of events. Kevin - Original Message - From: "Jon Tillman" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 9:24 AM Subject: dynamically filling a calendar Hey folks, I have a calendar(as part of a scheduling app) that I need to fill in dynamically. What I am trying to do is to allow the user to select any month in any year and have the table filled out with the correct "month view" layuot. Is there a way to compare the results of the DateFormat() function OR a variable to the position of the table cell (both row and column) so as to determine where the individual dates should be? Any help would be greatly appreciated. -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --91DB15578B9139D87680618A Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit !doctype html public "-//w3c//dtd html 4.0 transitional//en" html Me too, Please brThanks! brBryan pKevin Schmidt wrote: blockquote TYPE=CITEJon, pI just finished writing an article for CFDJ on this very thing.nbsp; I would be brmore than willing to send you the code that generates the calendar as well bras populates it from a Database of events. pKevin br- Original Message - brFrom: "Jon Tillman" lt;[EMAIL PROTECTED] brTo: "CF-Talk" lt;[EMAIL PROTECTED] brSent: Friday, October 06, 2000 9:24 AM brSubject: dynamically filling a calendar p Hey folks, br I have a calendar(as part of a scheduling app) that I need to fill in br dynamically. br What I am trying to do is to allow the user to select any month in any bryear and br have the table filled out with the correct "month view" layuot. br Is there a way to compare the results of the DateFormat() function OR a br variable to the position of the table cell (both row and column) so as to br determine where the individual dates should be? br br Any help would be greatly appreciated. br br -- br *** brnbsp; Jon Tillman brnbsp; LINUX USER: #141163 brnbsp; ICQ: 4015362 brnbsp; a href="http://www.eruditum.org"http://www.eruditum.org/a brnbsp; [EMAIL PROTECTED] br *** br Be alert, the world needs more lerts br *** br br -- br br Archives: a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/"http://www.mail-archive.com/cf-talk@houseoffusion.com//a br To Unsubscribe visit bra href="http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk"http://www.houseoffusion.com/index.cfm?sidebar=listsamp;body=lists/cf_talk/a or brsend a message to [EMAIL PROTECTED] with 'unsubscribe' in brthe body. br p-- brArchives: a href="http://www.mail-archive.com/cf-talk@houseoffusion.com/"http://www.mail-archive.com/cf-talk@houseoffusion.com//a brTo Unsubscribe visit a href="http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk"http://www.houseoffusion.com/index.cfm?sidebar=listsamp;body=lists/cf_talk/a or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body./blockquote /html --91DB15578B9139D87680618A-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: dynamically filling a calendar
Couldn't resist jumping on the bandwagon. ME TOO -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -Original Message- From: Todd Ashworth [mailto:[EMAIL PROTECTED]] Sent: Friday, October 06, 2000 8:06 AM To: CF-Talk Subject: Re: dynamically filling a calendar Yes, post it to the list please. I am in desperate need of something that does exactly that :) Todd Ashworth - Original Message - From: "Kevin Queen" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Friday, October 06, 2000 10:38 AM Subject: RE: dynamically filling a calendar | Oo, me too, pleassse :) | | Could you include me in on that colander code (possibly post it to the | list?) | | Kevin Queen | Software Engineer | Synthetic Logic | | | "Ah, I see!", said the blind man to the deaf mute. -Unknown | | | -Original Message- | From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] | Sent: Friday, October 06, 2000 11:36 AM | To: CF-Talk | Subject: Re: dynamically filling a calendar | | | Jon, | | I just finished writing an article for CFDJ on this very thing. I would be | more than willing to send you the code that generates the calendar as well | as populates it from a Database of events. | | Kevin | - Original Message - | From: "Jon Tillman" [EMAIL PROTECTED] | To: "CF-Talk" [EMAIL PROTECTED] | Sent: Friday, October 06, 2000 9:24 AM | Subject: dynamically filling a calendar | | | Hey folks, | I have a calendar(as part of a scheduling app) that I need to fill in | dynamically. | What I am trying to do is to allow the user to select any month in any | year and | have the table filled out with the correct "month view" layuot. | Is there a way to compare the results of the DateFormat() function OR a | variable to the position of the table cell (both row and column) so as to | determine where the individual dates should be? | | Any help would be greatly appreciated. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: dynamically filling a calendar
Thanks guys, that hit the spot -- *** Jon Tillman LINUX USER: #141163 ICQ: 4015362 http://www.eruditum.org [EMAIL PROTECTED] *** Be alert, the world needs more lerts *** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.