osseed / com.osseed.eventcalendar

CiviCRM Event Calendar
GNU General Public License v3.0
11 stars 37 forks source link

Javascript, jQuery not executing/loading? #5

Closed zorgalina closed 6 years ago

zorgalina commented 11 years ago

I installed CiviCRM 4.3.5 on Drupal 7 (Windows 7) and event calender. Event settings page doesn't display colors or take updates for colors (cj::update_color not working?) As well, the calendar itself doesn't display my Events, just the title Event Calendar eventcalendar_settings showevents

chavanrohan commented 11 years ago

Could not replicate the issue, can you please check with latest code.

drsailer commented 10 years ago

Was there every a resolution to this? Did original poster find a solution? I am having the same issue on my Drupal 7 CiviCRM 4.4.5 If I look at web page source I see the event that should show on the calendar, but nothing shows on the page.

<script type="text/javascript">
 if (typeof(jQuery) != 'function')
     var jQuery = cj; 
 cj( function( ) {
    buildCalendar( );
  });
 function buildCalendar( ) {
  var events_data = {"events":[{"title":"Jones' Black Angus Supper Club - Prairie du Chien (KPDC)","backgroundColor":"#3366CC","start":"2014-05-03 17:00:00","url":"\/eaa33\/civicrm\/event\/info?id=5","end":null}],"header":{"left":"prev,next today","center":"title","right":"month,basicWeek,basicDay"}};
  var jsonStr = JSON.stringify(events_data);
  jQuery("#calendar").fullCalendar(events_data);        
 }
</script>
drsailer commented 10 years ago

I do see these java console errors. And I can verify the path it is looking for does not exist on my hosting server. screen shot 2014-05-01 at 2 51 05 pm

drsailer commented 10 years ago

figured it out. I had the wrong path in the "Extension Resource URL" so the java script and css for the calendar were not loading. If it helps anyone else. Thanks.

ghost commented 10 years ago

drsailer, Could you give a little more detail on how you solved this? I have the exact same issue with the Event Calendar. My path in the "Extension Resource URL" is /sites/default/files/civicrm/extensions. In the extensions folder I have the Event Calendar extension "com.osseed.eventcalendar". Is your setup any different than this?

drsailer commented 10 years ago

Not sure if it matters but I have the full HTTP URL there. "http://www.eaa33.org/eaa33/sites/default/files/civicrm/extensions"

ghost commented 10 years ago

drsailer,

Thanks. I found my error after rechecking that URL. After fixing it, the calendar works great.