I am trying to use jscalendar and have modifed a field in a form to have a jscalendar class. I also have both the jstools and jscalendar modules active.

However, nothing is showing up, and there is no mention of jstools or jscalendar (except the css class for my form item) in the rendered source for my page.

I haven't looked too closely into what is happening, but I suspect that it might be related to two things:
1. I am running multisites (and db prefixes)
2. I am not running with clean urls

Otherwise, I am running drupal 4.7.0 with a recent cvs version of jstools (from today).

Comments

ragrawal’s picture

I had some problems with jstools. I deleted dynamicload module and then everything seemed to worked fine for me

Regards

nedjo’s picture

It looks like the form_alter in jscalendar isn't detecting your field.

Is the field nested in a #tree?

Please post your field definition or, if possible, the full function defining your form. (Or, if you prefer, send this to me via my contact tab).

Do you have jstools.module enabled?

nedjo’s picture

Title: jstools not being loaded » jscalendar not being loaded

It's likely a problem with the order of the form altering. Ted yesterday applied a patch that changes the weight of jscalendar.module, making it be called after other modules, see http://drupal.org/node/61914. Since jscalendar is already installed on your system, the install script won't run. Easiest just to manually run this SQL (adjust the table name it if you have a database prefix):


UPDATE system SET weight = 24 WHERE name = 'jstools';

oliver soell’s picture

awesome!! I reinstalled the module (devel.module is so handy) and it works like a champ. Thanks.

oliver soell’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)