datepicker plugin and jQuery UI 1.8.2 theme not compatible?
I'm using Keith Wood's datepicker jQuery plugin v.4.0.2 (not the jQuery UI datepicker) with jQuery 1.4.2, and I want to use the jQuery UI Cupertino theme v.1.8.2.
I reproduced the example on this page http://keith-wood.name/datepick.html under the Layout/Style tab. The inline example worked, but the popup example failed.
I tried many permutations and combinations of loading .js and .css files, none of which worked. Would someone please point out the error of my ways? Code snippet and screenshots below.
jQuery UI popup works

jQuery plugin popup fails

- <!-- style sheets -->
- <link type="text/css" href="/jquery/jquery-ui-1/css/cupertino/jquery-ui-1.8.2.custom.css" rel="stylesheet" />
- <link type="text/css" href="/jquery/datepick-4.0.2/jquery.datepick.css" rel="stylesheet" />
- <link type="text/css" href="/jquery/jquery-ui-1/development-bundle/themes/cupertino/jquery.ui.theme.css" rel="stylesheet" />
- <link type="text/css" href="/jquery/datepick-4.0.2/ui-cupertino.datepick.css" rel="stylesheet" />
- <!-- javascripts -->
- <script type="text/javascript" src="/jquery/jquery-ui-1/js/jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="/jquery/jquery-ui-1/js/jquery-ui-1.8.2.custom.min.js"></script>
- <script type="text/javascript" src="/jquery/datepick-4.0.2/jquery.datepick.js"></script>
- <script type="text/javascript" src="/jquery/datepick-4.0.2/jquery.datepick.ext.js"></script>
- <script type="text/javascript">
- // jQuery UI inline
- $(function(){
- $('#datepicker').datepicker({
- inline: true
- });
- });
- // jQuery UI popup
- $(function(){
- $('#datepickerpopup').datepicker({
- });
- });
- // jQuery plugin inline
- $(function(){
- $('#themeRollerInline').datepick({
- renderer: $.datepick.themeRollerRenderer});
- });
- // jQuery plugin popup
- // does not work
- $(function(){
- $('#themeRollerPopup').datepick({
- renderer: $.datepick.themeRollerRenderer, showTrigger: '#calImg'});
- });
- </script>
- <!-- HTML -->
- <div id="datepicker"></div>
- <p><input type="text" id="datepickerpopup"></p>
- <div id="themeRollerInline"></div>
- <!-- does not work -->
- <p><input type="text" id="themeRollerPopup" class="hasDatepick"></p>