PDA

View Full Version : Popup Calendar



Drachsi
07-28-2008, 07:45 AM
1) Script Title: Popup Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/popcalendar.htm

3) Describe problem: I have a form with a selection as
<td valign="top" style="width: 396px">
<strong><span class="style3">

<input name="an" type="text" size="35" tabindex="5"></a></span></strong></td>
</tr>
<td valign="top" style="width: 396px">
<strong><span class="style3">

<input name="ab" type="text" size="35" tabindex="5"></a></span></strong></td>
</tr>

How do I use the code

<input type="text" name="choice1_1" onFocus="getCalendarFor(this)">

as I want the form to post the an and ab dates?

REgards

Drachsi

jscheuer1
07-28-2008, 11:05 AM
That looks about right. However, this script apparently only works in IE. I'd suggest another script, perhaps:

http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

or (I believe this one would require an onclick event, as it is a pop up window):

http://www.dynamicdrive.com/dynamicindex6/popcalendar2.htm