Jump to content

Date Picker


phpwannabe25

Recommended Posts

Im having a problem tryin to combine a datepicker with a form that is displayed with a lightbox.

 

With out the lightbox effect, the form works with the datepicker.

 

when the lightobx effect is implemented, the datepicker will not work.

below is the code for the form with the date picker.


<script type="text/javascript" src="mootools.js"></script>
<script type="text/javascript" src="calendar.js"></script>
<script type="text/javascript" src="calendar.compats.js"></script>
<script type="text/javascript" src="calendar.rc4.js"></script>

  <script type="text/javascript">
    window.addEvent('domready', function() {  myCal = new Calendar({ date: 'Y/m/d' }); });

</script>
</head>
<body>

<p align="left"><label for="checkout">Checkout:*</label><input id="date" name="date" type="text" onfocus="myCal" title="Plese enter your check-out dates"  class="required check-out dates" /></p>


</body>
</html>


 

the code for the lightbox form is as follow:


<script type="text/javascript" src="mootools.js"></script>
<script type="text/javascript" src="lightbox-form.js"></script>
<style type="text/css">#maindiv {height:450px} textarea {vertical-align:text-top;}</style>
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=150,width=250');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>
<form method="post" action="thanks2.php" target="_parent" id='myFormlightbox'>
<td width="50%">Check-in Date: (YYYY-MM-DD)</td>
								<td width="50%">
									<input id="checkin" name="checkin" title="Check-in date?" type="text" class="required check-in dates" />
								</td>

attempting to combine these two does not work....

is this a common problem, can anyone shed any l ight on this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.