Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: GetListItems - Recurring Events - DateRangesOverlap

$
0
0
HI every one. This post really helped me out ey.
I have a few or one problem.

on callback(events) I get an error, Uncaught TypeError: boolean is not a function
Been cracking my head here please help not still new here. ohh and I am using sharepoint 2013.

let me just post my code for control.
$('#calendar').fullCalendar({
                    
                       editable: true,
                      events: function(start, end, callback) 
                      {
                       $().SPServices(
                       {
                          operation: "GetListItems",
                          async: false,
                         webURL:"http://mydomain.ac.za/",
                         listName: "mylist",
                         CAMLViewFields: "<ViewFields><FieldRef Name='ID' /><FieldRef Name='Title' /><FieldRef Name='Start_x0020_Date' /><FieldRef Name='End_x0020_Date' /></ViewFields>",
                        completefunc: function (xData, Status) 
                        {
                          var events = [];alert(xData.responseText); // alert just to see the data that has been returned. 
                          $(xData.responseXML).find("z\\:row").each(function() 
                          {
                         
                           var thisID = $(this).attr("ows_ID");
                           var thisTitle = $(this).attr("ows_Title");
                           var thisStartDate = $(this).attr("ows_Start_x0020_Date");
                           var thisEndDate = $(this).attr("ows_End_x0020_Date"); ;
                           var thisTextColor = '#fff';
                           var thisBGColor = '#36c';
    
                           events.push(
                           {
                            title: thisTitle,
                            start: thisStartDate,
                            end: thisEndDate
                           });
                          });
                          
                          callback(events);
                        }
                       });
                      }
                    }); 
Thank you for the help in advance. you Guys Rock!!!

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>