Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Preview: Event Calendar Module

Discuss all other Modules here.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Go to End
Author Topic: 41338 Views
  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Preview: Event Calendar Module Link to this post

    When I try and view my newly created Calendar page. The area where the calendar picker should be just has the loading gif showing...

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Check for Javascript errors.

  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Preview: Event Calendar Module Link to this post

    ...that is the error I'm getting.

    jQuery("#calendar-widget").datePicker is not a function
    (?)()()calendar...242188019 (line 4)
    onreadystatechange()()jquery-1...242188019 (line 27)
    onreadystatechange()()jquery-1...242188019 (line 27)
    nodeName()([function()], function(), undefined)jquery-1...242188019 (line 21)
    onreadystatechange()()jquery-1...242188019 (line 27)
    [Break on this error] .datePicker({inline:true, startDate : ...Start : start_date, rangeEnd: end_date})


    Line 4 of event_calendar/javascript/calendar_widget.js

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Is the date_picker.js file being pulled in at all?

  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Preview: Event Calendar Module Link to this post

    You mean /event_calendar/javascript/jquery.datePicker.js?

    Yes, it appears to be - maybe loaded in the wrong order or something?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Sounds like some kind of conflict. Start removing dependencies and see if it clears up. Also, make sure you can navigate to and read the url of datePicker.js that is being pulled into your HTML.

  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Preview: Event Calendar Module Link to this post

    Ah, yes I removed my JS requires and it works - but of course, that now breaks other parts of my site.

    I solved it by changing

    <% require javascript(jsparty/jquery/jquery.js) %>

    to

    <% require javascript(event_calendar/javascript/jquery-1.2.6.min.js) %>

    Shouldn't the module try and use the central jquery library instead of duplicating it?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Interesting. Yeah, I didn't want to rely on the SS jquery resource because they seem really slow to update it. I know the EventCalendar jQuery version is still a version behind, but at least this way I don't have to wait for them to upgrade to 1.3. I can do it on my own.

    41338 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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.