Yii Framework Forum: CJuiDatePicker doesn't work for me - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CJuiDatePicker doesn't work for me Copied the doc's example but the calendar doesn't show on clic Rate Topic: -----

#1 User is offline   petruza 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 12-July 10

Posted 07 September 2010 - 05:42 PM

I copied the documentation's example for CJuiDatePicker:
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'name'=>'publishDate',
    // additional javascript options for the date picker plugin
    'options'=>array(
        'showAnim'=>'fold',
    ),
    'htmlOptions'=>array(
        'style'=>'height:20px;'
    ),
));


The form field is rendered, but when I click it nothing happens, no calendar is displayed.
Am I missing something? do I have to manually include JQuery, or set some javascript callbacks or anything else than the example above?
0

#2 User is offline   DarkNSF 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 287
  • Joined: 12-November 08
  • Location:Palm Bay, Florida

Posted 07 September 2010 - 06:08 PM

View Postpetruza, on 07 September 2010 - 05:42 PM, said:

I copied the documentation's example for CJuiDatePicker:
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'name'=>'publishDate',
    // additional javascript options for the date picker plugin
    'options'=>array(
        'showAnim'=>'fold',
    ),
    'htmlOptions'=>array(
        'style'=>'height:20px;'
    ),
));


The form field is rendered, but when I click it nothing happens, no calendar is displayed.
Am I missing something? do I have to manually include JQuery, or set some javascript callbacks or anything else than the example above?



post the html produced by this page, also verify that the imported js and css files exist in assets.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users