I'm trying to make use of the great FullCalendar plugin (http://arshaw.com/fullcalendar/) and ran into a problem.

I whittled my page down to the following raw HTML code, taking Drupal out of the picture for debugging:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.js"></script>
<link rel='stylesheet' type='text/css' href='/misc/fullcalendar/fullcalendar.css' />
<script type='text/javascript' src='/misc/fullcalendar/fullcalendar.js'></script>
<script type="text/javascript">
  $(document).ready(function() { $('#calendar').fullCalendar({}) });
</script>
</head>

<body class="not-front logged-in page-node node-type-page one-sidebar sidebar-left col-2 ">
<div class="container">
  <h2>Members&#039; Calendar</h2>
  <div id='calendar'></div>
  <script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.min.js?E"></script>
</div>
</body>
</html>

Using the above code, the page doesn't work - the calendar never loads and I get JS errors about 'fullCalendar' not being defined. However, if I delete the final <script ...?E"> tag, then it starts working properly (the calendar loads as desired).

Can anyone shed any light on what that line's for? "?E" is a hard concept to google for. =) I'm not sure how to get rid of that line, nor do I know what would happen if I did.

Thanks.

Comments

kenahoo’s picture

BTW, I noticed after I posted that the first 'script' tag was using "jquery.js" instead of "jquery.min.js" - correcting that had no effect.

kenahoo’s picture

Maybe the real problem is in my theme template - I guess that's what's responsible for putting the $script variable in the proper place, and for some reason it had it near the end of the page rather than in <head>. I'll fiddle with it.

markhalliwell’s picture

Status: Active » Closed (outdated)

Drupal 6 reached EOL (end-of-life) on February 24, 2016.