Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript/DHTML Calendar Control for Form Entry

Status
Not open for further replies.

SALacy

MIS
Oct 7, 1999
2
US
I am looking for Javascript or DHTML that will display a small pop-up monthly calendar from which to select a date and return the selection to a form field (like a VB control). I have seen these in operation, but I can seem to find any code.<br>
Any suggestions?<br>
<br>
Thanks,<br>
SAL
 
Hmmm.....<br>
wouldn't a simple <i>window.open(&quot;new window&quot;,&quot;URL&quot;)</i> routine work for opening the Pop-up; then a simple <i>window.opener.forms[0].inputs[x].value=</i> (followed by the date that they selected) routine work for filling in the field in the originating window? <p>-Robherc<br><a href=mailto:robherc@netzero.net>robherc@netzero.net</a><br><a href= > </a><br>*nix installation & program collector/reseller. Contact me if you think you've got one that I don't :)
 
There is probably a nice JAVA control at <A HREF=" TARGET="_new"> <p>John Vogel<br><a href=mailto:john@computerwiz.net>john@computerwiz.net</a><br><a href= Computerwiz Community</a><br>---==============================---<br>
I am currently working on It should be LIVE 1/12/00 or before. I would appreciate suggestions, comments and the like. Please go look and help. Thanks.<br>
---========================
 
This is the best implementation I could find: It uses Java instead of javascript, but it is very small and doesn't take long to load (unlike some Java code I've found). Parameters are a little hard to figure out and the documentation is light, but it has a lot of great features.<br>
Check it out.
 
I have created an easy-to-use cross-browser navigable calendar. Go to and click the calendar link to see it in action. My dynamicHTML3.js library defines a slew of String.prototype functions named for the corresponding HTML tags that they implement. Perhaps most importantly, I've defined several &quot;widgets&quot; that make it easy to render reusable components like a color selector or an entire calendar.

Just use this code...
Code:
<script language=JavaScript src=[URL unfurl="true"]http://home1.gte.net/uuclb/dynamicHTML3.js></script>[/URL]
<script language=JavaScript>
(new Date()).calendar().write(); // renders a calendar! 
</script>
I'd be happy to answer your questions about dynamicHTML3.js
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top