Click here to Skip to main content
11,933,854 members (35,954 online)
Click here to Skip to main content
Add your own
alternative version


23 bookmarked

Easy Calendar

, 20 Oct 2004
Rate this:
Please Sign up or sign in to vote.
An article that demonstrates a simple yet very powerful Calendar, no need for server-side hussle!


Ever had a form where you wanted the user to fill-in a date, a valid date? Tried and looked for something to help you out? EasyCalendar is for you!

Using the code

Plain simple: put the EasyCalendar files (except for demo.html - included in the project zip) in your Web/HTML directory, and make very modifications to your original HTML file (it can be ASP, ASP.NET, PHP whatever...) as demonstrated in the demo.html.

The Javascript code will be like:

<script language="javascript">
var activeElement = false;
function setDate( elementName )  {
  activeElement = document.forms[0].elements[ elementName ];
  var w ="DateSelector.html", "DateSelector",
function GetDateSelectorDate() { return activeElement.value; }
function SetDateSelectorDate( dateString )
 { activeElement.value = dateString; }

And supposing you have an <input name="date1" readonly="yes"> where you need to set a valid date, just make an anchor with a javascript event, ex: <a href="javascript:setDate('date1')">Change the date</a> and that's it!



I have fun making tools in JavaScript and I admire the power of DHTML.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Fadi Chamieh
Architect Ogeronet Libantelecom
Lebanon Lebanon
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralJavaScript mounth Calendar Pin
shareef2220002-Jul-09 23:11
membershareef2220002-Jul-09 23:11 
GeneralRe: JavaScript mounth Calendar Pin
Chamadness3-Jul-09 2:24
memberChamadness3-Jul-09 2:24 
GeneralactiveElement undefined Pin
ant326-Jun-06 5:10
memberant326-Jun-06 5:10 
GeneralRe: activeElement undefined Pin
Chamadness26-Jun-06 6:35
memberChamadness26-Jun-06 6:35 
GeneralRe: activeElement undefined Pin
ant326-Jun-06 10:08
memberant326-Jun-06 10:08 
Generalundefined Pin
binoy rajan11-Aug-08 8:31
memberbinoy rajan11-Aug-08 8:31 
GeneralSmall Firefox bug Pin
mikeo_code18-May-06 1:28
membermikeo_code18-May-06 1:28 
GeneralThank you Pin
specky8528-Feb-06 3:25
memberspecky8528-Feb-06 3:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151126.1 | Last Updated 20 Oct 2004
Article Copyright 2004 by Fadi Chamieh
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid