Hey Guys?
I’m having an issue with the CJuiInputWidget date picker which is an inbuilt widget in yii. Located in zii.widgets.jui.CJuiInputWidget. The button is visible on chrome an working well as seen in one of the diagrams.
The other diagram that does not display the calendar-button is the case on firefox…
When I see the firebug console errors… I get this
jQuery("#fromDate").datepicker is not a function
Below is the code snippet for the datepicker
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'name' => 'fromDate',
'options' => array(
'buttonImage' => Yii::app()->request->baseUrl . '/images/calendar.gif',
'buttonImageOnly' => true,
'showAnim' => 'fold', // 'show' (the default), 'slideDown', 'fadeIn', 'fold'
'showOn' => 'button', // 'focus', 'button', 'both'
'dateonly'=>'true',
'dateFormat' => 'yy-mm-dd',
),
'htmlOptions' => array(
'style' => 'width:80px;vertical-align:center;horizontal-align:center;'
),
));
?>
would someone please help me with this issue.
Regards,
Kevin.