Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi,

I'm working on a website for a hotel and it would be really nice if I could implement jQuery datepicker on the booking form, for an easy selection of arrival and departure dates.
Does anyone managed to use the jQuery datepicker with Couch CMS?
Thanks!
Hi,

I think you can use the MooTools datepicker (viewtopic.php?f=8&t=7126#p9537) as a guide and port it to jQuery.

Shouldn't be too difficult. Do share the code when done :)
KK wrote: Hi,

I think you can use the MooTools datepicker (viewtopic.php?f=8&t=7126#p9537) as a guide and port it to jQuery.

Shouldn't be too difficult. Do share the code when done :)

Thanks KK for the tip. As I'm using Couch CMS v1.4.7 the MooTools datepicker would be just fine. However, even if on the backend it's working, it seems I can't make it to work on the frontend.
On the frontend, In the booking page's <head> section I'm linking the datepicker
Code: Select all
<link rel="stylesheet" type="text/css" media="all" href="<cms:show k_admin_link />addons/datepicker/datepicker.css" />
          <script type="text/javascript" src="<cms:show k_admin_link />addons/datepicker/datepicker.js"></script>
          <script type="text/javascript">
             window.addEvent('domready',
                function(){
                   $('f_datasosirii').addEvent('click', function(e){
                   displayDatePicker('f_datasosirii');
                   });
                }
             );
          </script>
but the datepicker still not working :(
What I'm missing here?
atisz wrote: What I'm missing here?
Oh my! I just realized that I have forgot to reference the MooTools library. Job done now ;)
Thank you KK for the datepicker addon.
4 posts Page 1 of 1