Hi,
I now have data saving properly to mySQL. When I reload the page, the loading indicator works well, and then the events appear.
However, they don’t show the right formatting until I edit the event, and click save.
This is what it looks like when loading the data;
And after double-clicking on an event, and hitting save (the correct information is already displayed in the lightbox editor - so the information is being retrieved correctly);
I have code that formats the event - perhaps the ‘work_desc’ isn’t properly loaded by the time the CSS is applied?
[code] //set how the event is displayed
scheduler.templates.event_bar_text=function(start, end, event){
if(event.work_desc)
return “”+scheduler.getLabel(“work_desc”, event.work_desc)+“”+
“
”+(event.text_desc?(“Notes: “+event.text_desc):””);
return "New Event";
}[/code]
Is there a way to make it properly update itself once the data is loaded? Is there something else I am missing?
Thanks,