loads data to the scheduler from an external data source

void load(string url, [function callback] );


urlstringthe server-side URL (may be a static file or a server-side script which outputs data in one of the supported formats)
callbackfunctionthe callback function


scheduler.load("data"); // the format of loaded data is auto-detected
// or
    alert("Data has been successfully loaded");

Related samples


Pay attention that in case of dynamic loading the callback function that is passed as a second parameter will be called only during the initial loading of data. While next portions of data will be loaded later, the callback function won't be called anymore.

If you need to call the callback function each time data is loaded into Scheduler, you can make use of the onLoadEnd event.

See also
Back to top