Loads the schedule from an XML file.
Namespace: MindFusion.Scheduling
File: Schedule.js
JavaScript Copy Code |
---|
function loadFromXml (fileUrl, [onLoad, [onError]]) |
String. The URL of an XML file where the data should be read from.
function. A callback that should be invoked if the file is loaded successfully.
function. A callback that should be invoked if the file could not be downloaded.
The following code shows you how to load the schedule from an XML document:
JavaScript Copy Code |
---|
calendar.schedule.loadFromXml("data.xml"); |