Datepicker - how to enable
lenkkivihko - February 14, 2009 - 16:30
How to enable Datepicker to a text field?
I have installed jquery_ui and jquery_update and jquery_ui into the jquery_ui/jquery_ui (as told in README.txt)
I think what I am missing is to who to add appropriate .js files and .css files to the source code.
Then how to tell that the datepicker should be added to some field.
I would assume they need to be added to form_alter to the form?
Could anyone provide some directions / help?
Thanks in advance!

How you adding the field,
How you adding the field, with the Form API?
just testing with node example
= Form API.
http://api.drupal.org/api/file/developer/examples/node_example.module/6/...
Harjoituspäiväkirja - www.lenkkivihko.fi
Did you figure this out???
Hi
Did you figure how to add a datepicker to a form item???
Thanks
Jeff in Seattle
Jeff in Seattle
enable
enable http://drupal.org/project/jquery_ui
and use this code
<?phpjquery_ui_add(array('ui.datepicker'));
drupal_add_js('$(document).ready(function(){$("#date").datepicker();});','inline');
drupal_add_css("sites/all/modules/jquery_ui/jquery.ui/themes/default/ui.datepicker.css");
?>
------
GiorgosK
Geoland Web development / web marketing
Media Temple Special Offer Codes