Hi,
I'm trying to build webpage using jQuery datepicker in drupal, but i'm stuck with localization. I know that datepicker has translated to Finnish but i'm not able to get it working. Can you guys point me what i'm doing wrong. I remove < tags so filter doesen't filter my code away. :) And i havent never use java before.
link type="text/css" href="css/themename/jquery-ui-1.7.1.custom.css" rel="Stylesheet" />
script type="text/javascript" src="js/jquery-1.3.2.min.js"
script type="text/javascript" src="js/jquery-ui-1.7.1.custom.min.js">
script type="text/javascript" src="jquery.ui.datepicker-fi.js">
script type="text/javascript">
$(document).ready(function() {
$.datepicker.setDefaults($.datepicker.regional['']);
$('#date').datepicker($.datepicker.regional['fi']);
});
/script>
form method="post" action="php $_PHP_SELF ">
input type="text" name="date" id="date" />
input type="submit" value="TALLENNA" name="tallennus">
br>
?php
jquery_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");
if($_POST["tallennus"])
{
print $_POST[date];
}
?