Hi,
Im new on this Drupal world. I searched all this site finding an answer, and nothing. Thats because i need a better answer cause i don't understand too much Drupal. Dont get angry.
The thing is. Im trying to use the jscalendar that i readed is attached to Drupal 5. I activated the module.
Then, i tried to use for this: I need a textfield and a calendar at his side. When clicked, the calendar must Pop-up and the user need to be able to select a date, and that date goes to the text field and everybody happy. This is a page, not a block.
I readed about this code in a example:
$form['date'] = array(
'#type' => 'textfield',
'#attributes' => array('class' => 'jscalendar'),
);
I copied it to my code, and nothing happens. It saids (the readme) that all u need is give the class "jscalendar" to a textfield. And I did this (this input on a form in html):
<input type="text" name="date" class="jscalendar"/>
And nothing happens.
Then, I tried thousands of things:
Printing the $form
Printing the $form['date']
Button with that class
Etc
And nothing happens.
So, im writing this and boring you. But i need this...
please, i need a super example. One with the php, the html... all. Cause i got the $form, but don't know how to call it. it says "array". And sometimes i can see nothing... well, thats it.