jquery-sked-tape
jquery-sked-tape copied to clipboard
Uncaught TypeError: $.skedTape is not a function
Hi
Thank you for this library.
I got this error "Uncaught TypeError: $.skedTape is not a function."
Im using codeigniter and this is my code :
$.ajax({ url: "", type: "GET", data: {}, dataType: "JSON", success: function (data)
{
if(data.status == 'Success'){
var locations = [
{id: '1', name: 'Test1'},
{id: '2', name: 'Test 2'}
];
var events = [
{
name: 'ABC1234567',
location: '1',
start: today(11, 0),
end: today(14, 45)
},
];
var sked2Config = {
caption: 'Location',
start: today(8, 0),
end: tomorrow(8, 0),
showEventTime: true,
showEventDuration: true,
locations: locations.map(function(location) {
var newLocation = $.extend({}, location);
delete newLocation.tzOffset;
return newLocation;
}),
// events: events.slice(),
tzOffset: 0,
sorting: true,
orderBy: 'name',
};
var $sked2 = $.skedTape(sked2Config);
$sked2.appendTo('#sked2').skedTape('render');
$sked2.skedTape('destroy');
$sked2.skedTape(sked2Config);
}
}
});
Please help me...