Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

Preview: Event Calendar Module


Go to End
Reply


293 Posts   42859 Views

Avatar
mobius

Community Member, 54 Posts

13 May 2009 at 4:44pm

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

Avatar
UncleCheese

Forum Moderator, 4094 Posts

14 May 2009 at 1:16am

Check for Javascript errors.

Avatar
mobius

Community Member, 54 Posts

14 May 2009 at 8:27am

...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

Avatar
UncleCheese

Forum Moderator, 4094 Posts

17 May 2009 at 3:45am

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

Avatar
mobius

Community Member, 54 Posts

18 May 2009 at 9:31am

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

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

Avatar
UncleCheese

Forum Moderator, 4094 Posts

18 May 2009 at 10:19am

Edited: 18/05/2009 10:19am

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.

Avatar
mobius

Community Member, 54 Posts

18 May 2009 at 10:39am

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?

Avatar
UncleCheese

Forum Moderator, 4094 Posts

19 May 2009 at 9:31am

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.

Go to Top