Environment - Win2003 II6 server, WinXP2SP2 clients IE6
Other modules of note - organic_groups, webserver_auth, tinymce, image, img_assist, search. I have isapirewrite installed and working for clean_urls.

I installed event last week and got it working. I have not installed flexinode; I manually turned on basicevent.
// $Id: event.module,v 1.183.2.4 2006/05/11 08:28:27 killes Exp $

I then noticed this thread to get jscalendar support
http://drupal.org/node/48401

So this morning I downloaded yesterday's event and installed the 5 updated files over my existing files

// $Id: event.module,v 1.183.2.6 2006/05/22 13:54:07 killes Exp $
/* $Id: ical.inc,v 1.3.2.3 2006/05/22 13:35:07 killes Exp $ */
// $Id: event_timezones.inc,v 1.4.2.3 2006/05/22 13:35:07 killes Exp $
// $Id: event.theme,v 1.26.2.3 2006/05/22 13:35:07 killes Exp $
// $Id: event.install,v 1.2.2.4 2006/05/22 13:35:07 killes Exp $

I didn't reinstall event. I see in the updated install script it now enables basicevent when event is installed (great!), but since I don't have location installed I see no reason to worry about the rest of the updated event.install script.

Tried to create a new event; same old screen. I then noticed I needed to install jstools - I installed all the files for all the entire module, but only enabled jscalendar (and not jstools) in admin/modules. If I go to admin/settings/jscalendar, I now see a dropdown to select my calendar. I selected the default calendar-blue and hit save. I haven't enable any other jstools.

// $Id: jscalendar.module,v 1.5.2.2 2006/05/17 23:59:45 nedjo Exp $

When I try to create a new event, I get the new screen - startdate and enddate use this format YYYY-MM-DD HH:MM - but I get no icon or popup calendar...

I then noticed I was supposed to enable the jstools module, so I did. No change...

// $Id: jstools.module,v 1.1 2006/05/11 18:31:29 nedjo Exp $

I saw a note in the thread above about using the must current forms.inc, but the note is older than my forms.inc

// $Id: form.inc,v 1.112.2.2 2006/04/29 15:02:00 killes Exp $

I turned offclean_urls - didn't help...

I do NOT have event_all_day loaded or installed

what (if anything) have I done wrong?

Thanks,
Dusty

CommentFileSizeAuthor
#17 jscalendar.css.txt455 bytesyojoe
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

The calendar icon was not appearing in IE6, all other browsers seemed to be OK. I reported it on the jstools issues page and the fix just got committed to HEAD, so if you get the latest version of jscalendar from cvs it should fix it (I haven't had time to test it myself yet).

alanburke’s picture

You also need to configure Calendar support for JScalendar in

admin/settings/content-types/event
[for basicevent contentent type]
Alan

dustyketchum’s picture

Karen,
I installed the latest version of jstools - still no luck

// $Id: jscalendar.js,v 1.4.2.2 2006/05/23 21:08:25 nedjo Exp $

I also tried this changed this setting from this thread...

"UPDATE {system} SET weight = 24 WHERE name = 'jstools'";

http://drupal.org/node/64161

Alan,
I don't see an option to enable javascript calendar events - I thought they decided to enable it by default?

Thanks,
Dusty

KarenS’s picture

Sorry for the slow response, I've been gone. You need the latest version of jscalendar, not jstools (although I'm sure getting the latest version of jstools won't hurt anything). And, yes, there is no longer a settings option, it should just work if you have jscalendar installed.

dustyketchum’s picture

Karen,

I just tried today's jstools and jscalendar - still no luck
// $Id: jstools.module,v 1.1.2.2 2006/06/03 14:28:39 nedjo Exp $
// $Id: jscalendar.module,v 1.5.2.3 2006/05/30 04:30:14 nedjo Exp $

I see that event 4.7.0 keeps getting updated, but I don't see any new code, at least not in event.module.

I tried event.module from cvs, still no luck...
// $Id: event.module,v 1.206 2006/05/29 18:31:49 killes Exp $

I ran this from the jscalendar install script; still no luck...
UPDATE {system} SET weight = 10 WHERE name = 'jscalendar'

I'm out of guesses...

KarenS’s picture

I'm not sure what the problem is. This seems to be working for others. Some more things to try:

* Try using Firefox instead of IE and see if that makes any difference.
* What other modules do you have installed? Are there any that us js other than the jstools kit? Maybe there is some other js conflict.
* What exactly do you see? I assume it is a text box but no icon to pop up the jscalendar.

I'm trying to think what else to suggest...

KarenS’s picture

Sorry, I see you already provided a list of your modules. It might by tinymce -- another js package. Try turning that off and see what happens.

If none of those things uncovers anything, try turning off the other modules one at a time and see if it starts to work. I have to think this is some kind of conflict between modules.

dustyketchum’s picture

Title: jscalendar with event - can't get it to work » jscalendar with event - can't get it to work with IE
Category: support » bug

support request >> bug report

Problem is internet explorer - Firefox works.

With Firefox I see jscalendar popup between date entry boxes and example templates YYYY-MM-DD HH:MM; with IE I see an extra black space where the jscalendar should be.

TinyMCE wasn't the problem - I just tried that as well.

Windows XP SP2 Pro clients; IE fully patched. Version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

While I recognize the IE has plenty of problems, it does handle integrated security in an active directory environment quite nicely. With webserver_auth my users can get new accounts auto created and don't need to login or remember another username or password. In other words, changing browsers just to get this working isn't a good option - I'll stick with IE until this is fixed.

Thanks for all the help!

KarenS’s picture

Project: Event » Javascript Tools
Component: User interface » Jscalendar

This is a jscalendar issue I think, so I'm going to transfer this issue over to jstools issues.

dustyketchum’s picture

I'll be happy to start a new issue for this, but I'll start here... Now that I can see in Firefox what jscalendar is actually doing, I'm seeing some problems.

I found these 2 threads regarding am/pm problems, but can't tell whether either of them apply or not.

http://drupal.org/node/50062
http://drupal.org/node/22885

Created an event for the end of our fiscal quarter - 5pm on June 30. With jscalendar module disabled, no problems.

With jscalendar module enabled, when I edit this event, it displays 2006-06-30 17:06, not 17:00. When I save this event without changing anything, the time now changes to 5:06am, not pm.

When I enter 00:00:00 as an event time, it displays the event start time as 12:00pm (should be am). When I go back to edit it, the time displays as 12:06

When I enter 12:00:00 as an event time, it displays the event start time as 12:00pm (which is correct). When I go back to edit it, the time displays as 12:06

When I enter 13:00:00 as an event time, it displays the event start time as 1:00am (should be pm). When I go back to edit it, the time displays as 01:06

It doesn't matter whether I type the values in by hand or use jscalendar to enter the times - same results.

My timezone is -0700 (California). Perhaps it should really be -0800 with DST enabled, but it doesn't appear drupal does DST properly if at all, so this is my workaround for now (read lots of threads with no clear results on a DST solution). Configurable time zones are enabled.

I just changed all my date formats to display am/pm, but didn't help this situation any.

KarenS’s picture

The time problem is a separate issue unrelated to jscalendar that will be fixed with the patch at http://drupal.org/node/65430 whenever it gets added in. I moved this thread to the jscalendar issues page because of the failure to display in IE, which is a jscalendar issue.

webchick’s picture

dustyketchum: Make sure under administer >> settings >> event that "Time notation preference" is set to 12 h.

dustyketchum’s picture

webchick - I just changed it from 24h to 12h and the am/pm problem is fixed. I must say that setting seems to do the opposite of what is says! when I enter an event time in 24h format it now works properly. IE problem remains...

many thanks!

Steve Dondley’s picture

OK, I solved the problem, for the most part.

In my style.css, I added the following:

.form-item input.jscalendar {
  float: left;
  display: inline;
 }

This got the calendar icon button to show directly below the textfield for manually entering the time. In, FF, instead of showing it below the textfield, the button shows directly to the right of it, as expected.

I'm not entirely sure why this works. The best I could tell, it has something to do with the explanation at in this blog post which says that IE has determined that any whitespaces or blank lines in the code will be returned by the nextSibling method. This method is called in the jscalendar.js script.

Intrestingly, the calendar button shows up perfectly---that is, directly to the right of the textfield---in IE as part of a form in a table generated by theme_table. So, there is some way to get it to work perfectly in IE. I'll let someone who is more knowledgeable with IE fuck ups and javascript to figure it out.

dustyketchum’s picture

Status: Active » Fixed

Verified - I'm using bluemarine and added these lines to my style.css - it works!

thanks much!

Anonymous’s picture

Status: Fixed » Closed (fixed)
yojoe’s picture

Version: 4.7.x-1.x-dev » master
FileSize
455 bytes

Adding

.form-item input.jscalendar {
    float: left;
    display: inline;
}

to my style.css didn't help in my case :( The calendar icon is just for a split second next to its textfield, but imediately jumps below it again.

To make it work here, I changed the following in jscalendar.css:
I removed

div.form-item.jscalendar {
    width: 16em;
}

and added

.form-item input.jscalendar {
    display: inline;
}

I attached my modified jscalendar.css file.

mcurry’s picture

Adding this to my issues list 'cause this one just bit me in the arse today.

Jim@drupal.be’s picture

Got everything working using the above changes to jscalandar.css.
The icon itself is showing, the calandar as wel but it is displaying underneath the other form-elements.
This makes it imposseble to select a date.

Works fine in IE7 an FF2. Failes on IE6 SP1