This is the latest 2.x-dev. When I enter a date, the popup doesn't contain the days of the month. When I attempt to enter the date manually, it throws an error: "The From date 05/2/2008 08:00AM is not valid."

Screenshot attached, showing these two problems.

I tried changing the date format in the admin pages, but the popup overrides this setting. Disabling the popup module allows the form to validate -- but the entry fields disappear.

This is a great module! Looking forward to getting it fully operational.

CommentFileSizeAuthor
#3 Date popup4.51 KBpvanderspek
popup-no-days.png66.65 KBalan426

Comments

karens’s picture

Status: Active » Fixed

I can't replicate this in the latest code. It may have been fixed since it was posted.

You can re-open if it is still broken when using code with today's commits. If so, I need more info about what kind of date field this was and how it was set up.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

pvanderspek’s picture

Version: 5.x-2.x-dev » 5.x-2.3
Status: Closed (fixed) » Active
StatusFileSize
new4.51 KB

I've recently upgraded from version 1.8 to 2.3. Immediately I noticed that JS Calendar didn't work anymore and so I enabled the Date Popup. Although it partially works, I do have some problems with it. I've reopened this support request because my problem seems to be very similar.
I also have a date/time-field. The popup, however, doesn't work properly (see attachment) and for the time-field I don't get a popup at all.

Perhaps useful to know is that I am using a version of jQuery different from the version coming with Drupal 5.10. I have the following (relevant) modules enabled:

jQuery Update 5.x-1.0
JQuery Interface 5.x-1.0
jQuery Interface Sortable 5.x-1.x-dev (2007-Jun-19)

If you need any additional information I'll be glad to give it to you if I can.

pvanderspek’s picture

Doesn't anyone have similar experiences? I'm really hoping on solving this issue.

lickthefrog’s picture

Same exact thing here. The Javascript popup comes up just like the attached image in #3 above. I can select months and years, but not any particular days.

jQuery Update 5.x-2.0.
Calendar: 5.x-2.3

Thanks.

pvanderspek’s picture

I've updated to jQuery Update 5.x-2.x but this didn't solve the problem. I found some more information which might be of help. Below is what I believe to be the javascript for the date and time fields which creates the popup. One thing that strikes me is in the calendar popup: dateFormat:'YMD-',
It doesn't look exactly like I expect it, but I might be wrong.

<script type="text/javascript">// Global Killswitch
    if (Drupal.jsEnabled) {
      $(document).ready(function() {$('.jquery-calendar-0').calendar({
prevText:'&lt;Prev', 
nextText:'Next&gt;', 
currentText:'Today', 
clearText:'Clear', 
closeText:'Close', 
firstDay:0, 
dayNames: new Array('S','M','T','W','T','F','S'), 
monthNames:new Array('January','February','March','April','May','June','July','August','September','October','November','December'), 
autoPopUp: 'focus', 
closeAtTop:false, 
speed: 'immediate', 
dateFormat:'YMD-', 
yearRange:'-3:+3'

});
      })}</script>
<script type="text/javascript">// Global Killswitch
    if (Drupal.jsEnabled) {
      $(document).ready(function() {$('.jquery-timeentry-1').timeEntry({
show24Hours: true, 
showSeconds: false, 
timeSteps: [1,1,0], 
spinnerImage: ''
});
      })}</script>
karens’s picture

pvanderspek’s picture

Well, I'm not sure but from that thread I understand the popup should work with jQuery 1.2 but in my case it didn't so the problem is probably somewhere else.

karens’s picture

The point is that everyone reporting this is using jQuery 1.2 and/or Hierarchical Select, so it's something to do with that somehow.

pvanderspek’s picture

I agree the most likely is that it's got something to do with the version of jQuery. On the other hand, I tried it both with 1.1 and 1.2 and neither worked. The only thing I didn't try is the version coming with Drupal, but I don't know on which version of jQuery that's based.

With which version of jQuery has the date popup been tested? Just the version in core or also with other versions?

karens’s picture

Status: Active » Closed (won't fix)

There are already other issues about the Date Popup compatibility, so we don't need another. It works fine with the default Drupal install, the problems are for people who have altered their jQuery, so I'm not going to spend a lot of time trying to track this down. The problem goes away in D6 and there is no problem if you use a default Drupal install.

MMachnik’s picture

Version: 5.x-2.3 » 5.x-2.7

I encountered this issue with 5.x-2.7, Calendar 5.x-2.7, Date API 5.x-2.7, and jQuery Update 5.x-2.0. Changing the version of jQuery did not make a difference. I found that the problem was a conflict with JS Calendar, which was still enabled. When I disabled that module, Date Popup worked. Just noting this here in the hopes it may help someone else -- you may experience unexpected behavior if both popups are enabled at the same time.