Hi!
I have a timeline with sections that need to be updated for every date range showed in the screen.
Fore example:
- I load the page for the first time server/scheduler, and it shows the timeline with data from this week (05.05.2014 to the 14.05.2014). The sections are loaded from database and I get they to the scheduler with:
var seccions = <?php echo json_encode($seccions_tree); ?>;
scheduler.serverList("timeline_seccions", seccions.slice());
scheduler.createTimelineView({
name:"timeline_week",
(...)
y_unit:scheduler.serverList("timeline_seccions"),
(...)
render:"tree"
});
- When I to the “Next” and “Previous” week buttons etc, I need to reload the sections because it can be different depending on the dates.
Is there a way to do that more ore less automatically?
How can I pass the actual dates to the server to make the database query of the sections?
Thx