Jump to:

23551 Posts in 19348 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » DateField showcalendar in SS3

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 625 Views
  • BlueO
    Community Member
    52 Posts

    DateField showcalendar in SS3 Link to this post

    Not sure if this is the right place to be asking this but I've run into an issue on our SS3 beta two test site with DateField.

    In 2.4 I can do the following to get a jquery UI popup for my datefield:

    $datefield = new DateField('FeatureEndDate', "Feature ends");
    $fields->push($datefield );

    then in the template


    It seems all the requisite js + css is getting loaded with DateField.js, jquery-ui.js, jquery.js, jquery-ui.css etc all being there. If I copy DateField.js and execute it in chrome's console I get the following error:

    Uncaught TypeError: Object [object Object] has no method 'datepicker'
    (anonymous function)

    But other than that I'm not getting other errors on load - can someone help me to debug this a bit further?



  • BlueO
    Community Member
    52 Posts

    Re: DateField showcalendar in SS3 Link to this post

    I seem to have sorted this - it appears to have been a requirements order problem with jquery being included too late perhaps - its hard to tell as the include order is tricky to deal with...

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.