Important alert: (current site time 7/15/2013 1:57:22 PM EDT)
 

winzip icon

Dynamic Calendar

Email
Submitted on: 7/11/2000 7:38:13 AM
By: Stephane Dorion 
Level: Advanced
User Rating: By 5 Users
Compatibility: JavaScript
Views: 19947
(About the author)
 
     This is a calendar that is dynamically produced upon selection of a month & year from the user. When 1st called it shows the current month & year. When clicking on a date in the produced calendar, it sends the date to a field on another page. See attached files for example. Many thanks to BungeeMan for finding the Y2K bug in the Calendar.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
7/11/2000 11:49:05 AMMichael Wieck

Looks like a good idea, but I keep getting errors when I try the script.
(If this comment was disrespectful, please report it.)

 
7/11/2000 11:53:07 AMStephane Dorion

What is the error that you get?

Note that when you start the calendar, there is a wait time needed by the window. You can define this wait time in the calling page. Wait time is to make sure that window has all the info about the caller before attempting to transfer the date to the caller.

While window is in wait time, it is blurred, it will appear when wait time is over.

Also note that the code is not yet cross-browser compatible. Netscape has some flaws about the year.
(If this comment was disrespectful, please report it.)

 
7/11/2000 3:06:31 PMMichael Wieck

It says that forms is not an object or something like that, I don't remember. It's in internet explorer, not netscape.
(If this comment was disrespectful, please report it.)

 
7/12/2000 6:10:48 AMStephane Dorion

This is what I thought.

Try changing the wait time
--> startCalendar(true,1000); <--

Change it to a higher value. The time needed by a computer to accept input from another window vary from computer to computer. Even if in theory no wait time is needed, that bug occurs often when we don't put any.

If that still does not address the problem, I will try to go deeper into it to fix it.

Stephane Dorion

(If this comment was disrespectful, please report it.)

 
9/8/2000 3:05:08 AMRavindra

In the CalendarExample.html
You have a URL variable
var URL =
(If this comment was disrespectful, please report it.)

 
9/8/2000 7:01:27 AMStephane Dorion

Yes, I do have this variable. However, in my version there's also a value with it.
var URL = "indexCal.html"

Its supposed to be in the version that I sent as well. If you do not have this line, then obviously you should add it :p

Thanks.

Stephane Dorion
(If this comment was disrespectful, please report it.)

 
9/8/2000 8:07:43 AMRavindra

The line
Var URL = "indexCal.html" is used.
But indexCal.html is missing int the
zip provided. Isn't the file essential
when it's used in the URL.
(If this comment was disrespectful, please report it.)

 
9/8/2000 8:15:47 AMStephane Dorion

Oh my, I'm sorry, this is most unexcusable from me. Thank you so much for telling me.

I've sent the new version.

Note that some updates were also brought to the calendar, so bug fixes..etc.

Thanks again.

(If this comment was disrespectful, please report it.)

 
9/26/2000 4:42:13 PMbungeeman

The months are showing up improperly. When the calendar first appears it shows the current month and it is accurate. But when I change the month using the select box, all months for the year 2000 are actually 1999 months.
Great program otherwise though!
(If this comment was disrespectful, please report it.)

 
7/25/2001 12:36:38 PMStephenb

Excellent!
Just what Iwas looking for.
Thanks!
(If this comment was disrespectful, please report it.)

 
3/29/2003 4:20:38 PM

the code deont appears when i unzip it it says copy right problem i want the code help me
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.