| Issue 1601: | Change _ anti caching variable name. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Greets! Thanks for all the great work on the calendar. If I make lots of money I will donate.
My backend is in perl and _ ( i.e. $_) is a system variable that cannot be easily changed. Is it possible to change the _ to "c" or anything really. I skimmed through the code but couldn't find where its named or applied.
Also. I rolled my own JSON generator but using the EventSources: or even the Events: syntax I do not get output of the data. Which raises the question of what is FullCalendar exepecting from the JSON object generator... any two record example will suffice. The following sample data produced by my JSON feed generator works when pasted into a static page by not when dynamically summoned:
[{title: 'T1',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=1'},{title: 'T2',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=2'},{id: 1,title: 'MULTI T3',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=3'},{id: 2,title: 'MULTI T4',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=4'},{title: 'T5',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=5'},{title: 'U3 6785553456',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=6'},{title: 'T6',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=7'},{title: 'T7',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=8'},{title: 'T8',start: new Date(2012,11,8,8,14),end: new Date(2012,11,8,12,14),allDay: false,url: 'http://example.com/data?id=9'}]
My calling script:
>>script type='text/javascript'>
$(document).ready(function(){
$('#calendarx').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
editable: true,
eventSources: [
// appts source
{
url: 'calendar_feed.htm',
color: 'yellow',
data: { uid: '999' }
},
{
url: 'calendar_feed.htm',
color: 'blue',
data: { uid: '888' }
}
// any other sources...
]
});
});
>>/script>
>>style type='text/css'>
#calendarx {
width: 900px;
margin: 0 auto;
}
>>/style>
>>div id='calendarx'> >>/div>
TIA
~Rudy
Aug 18, 2013
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |