When I render the form in view script with ajaxContext enabled, jQuery datePicker doesn't work.
It works perfectly when ajaxContext is disabled.
Here is how I added text element to the form:
- Code: Select all
$textElement = new ZendX_JQuery_Form_Element_DatePicker($colName, array("label" => $textLabel." (yyyy-mm-dd)"));
$textElement->setJQueryParams(array(
'dateFormat'=>'yy-mm-dd',
'changeMonth'=> true,
'changeYear'=> true
))
->setDecorators(array(
array('UiWidgetElement', array('tag' => '')),
array('Errors'),
array('HtmlTag', array('tag' => 'div', 'class'=>'span-11 last')),
array('Label', array('tag' => 'div', 'class'=>'span-5 clear'))
));
$this->addElement($textElement);
I've read everything in Internet and tried everything, but it seems that there is no clear answer.
Can somebody help?
Thanks

