Google Answers Logo
View Question
 
Q: HTML popup "date picker" for input forms ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: HTML popup "date picker" for input forms
Category: Computers > Programming
Asked by: rob1026-ga
List Price: $20.00
Posted: 16 Feb 2003 16:32 PST
Expires: 18 Mar 2003 16:32 PST
Question ID: 162234
I am a web developer building html data entry forms that have a lot of
date input fields (month, date, year) on them. I'd like to have a
"popup" calendar that allows the user to pick the date using a
graphical calendar interface.

For example, the popup would show an entire month of dates and allow
the user to scroll to different months/years, and finally double click
on a date. The popup then closes and the date is returned (probably as
a string) to the parent html page.

Preferrably, 1) the source code for this popup is available, and 2) it
is an Applet written in Java.

Request for Question Clarification by secret901-ga on 16 Feb 2003 16:41 PST
Hi rob1026:
I think I found what you're looking for.  It is in Javascript, and
works like this:
In a form where the user is supposed to enter a date, the user can
click on a link, which pops up a small calendar within that page (not
a popup window) so that the user can select a date.  After the user
clicks on a date, the calendar disappears and the form is filled with
the selected date.  This script works with NS, Mozilla, and IE.
Are you interested in this?

Request for Question Clarification by secret901-ga on 16 Feb 2003 16:56 PST
Here are some screenshots of the script in action:
http://www.lucidmatrix.com/uploads/Calendar-1.gif
http://www.lucidmatrix.com/uploads/Calendar-2.gif
http://www.lucidmatrix.com/uploads/Calendar-3.gif

Please let me know if it suits your needs,
secret901-ga

Request for Question Clarification by secret901-ga on 16 Feb 2003 17:00 PST
I also found another Javascript version that pops up a window.

Clarification of Question by rob1026-ga on 16 Feb 2003 17:44 PST
Yes, this is what I want. Is the entire source code for this
available? (I assume it is since it's in javascript) If you found
multiple versions, I'd like to see them all, please.

Do you know of any Java applet (with source code) that does this same
thing? I'll add a $20 tip if you get a good answer to this.
Answer  
Subject: Re: HTML popup "date picker" for input forms
Answered By: secret901-ga on 16 Feb 2003 18:30 PST
Rated:5 out of 5 stars
 
Hi rob1026:
I found five scripts that do what you want.  Four of them are in
Javascript, complete with source codes.  The other one is in Java, but
the source code is not available unless you register with the author.
Below are the links to the scripts and instructions of how to install
them:

1. Popup Date Picker
http://www.javascriptkit.com/script/script2/timestamp.shtml
Javascript, also a current time

2. Calendar Popup
http://www.mattkruse.com/javascript/calendarpopup/
Can either be pop-up or <DIV> style popup.

3. Date Picker
http://javascript.internet.com/calendars/date-picker.html
<DIV> style popup

4. Advanced Popup Calendar
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3356&lngWId=2
Popup version

5. Java Calendar
http://www.javaside.com/asp/mus.asp?page=/us/tcaldate.shtml
In Java, source code not available unless you contact the author to
register.  Click on the link to the examples to see how it's used.

I also found one date chooser that, while nice-looking, as far as I
know can not interact with non-Java elements.  You can see it here:
http://www.toedter.com/en/jcalendar/ The source is freely available,
so if you wish to add some more code to make it able to interact with
forms, this is a nice one.


I hope one of them meets all your needs.  If you need clarification,
please request for it before rating this answer.
secret901-ga

Search strategy:
Javascript popup calendar
Java calendar
Javascript "date chooser"
Java "date chooser"

Clarification of Answer by secret901-ga on 16 Feb 2003 18:45 PST
rob1026,
Here are some additional sources I found

6. Date Picker
http://www.telaterra.com/visiting/extras/FebruaryTrick.cfm
Created using Coldfusion and Javascript

7. Calendar Date Picker 
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=4&txtCodeId=6516
Javascript

secret901-ga
rob1026-ga rated this answer:5 out of 5 stars and gave an additional tip of: $20.00
Wow, I received outstanding service on this answer! I got multiple
correct answers, the search stategy used, and received responses
faster than I could handle. Thanks!

Comments  
Subject: Re: HTML popup "date picker" for input forms
From: secret901-ga on 19 Feb 2003 09:54 PST
 
Hi rob1026,
Thanks for the kind tip :-)
secret901-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy