10390 Posts in 2202 Topics by 1712 members
| Go to End | Next > | |
| Author | Topic: | 35225 Views |
-
Re: Preview: Event Calendar Module

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...
-
Re: Preview: Event Calendar Module

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 -
Re: Preview: Event Calendar Module

17 May 2009 at 3:45am
Is the date_picker.js file being pulled in at all?
-
Re: Preview: Event Calendar Module

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?
-
Re: Preview: Event Calendar Module

18 May 2009 at 10:19am Last edited: 18 May 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.
-
Re: Preview: Event Calendar Module

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?
-
Re: Preview: Event Calendar Module

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.
| 35225 Views | ||
| Go to Top | Next > |

