static/js/control.js
/**
 * Import data from a remote location
 * @function updateDataFromRemote
 * @param {string} path - remote path to data file
 * @param {Object} mo - master object
 * @description It uses XMLHttpRequest, which has to be run on a server.
 */
Import data from a remote location
@function updateDataFromRemote
@param {string} path - remote path to data file
@param {Object} mo - master object
@description It uses XMLHttpRequest, which has to be run on a server.
Import data from a remote location @function updateDataFromRemote @param { string } path - remote path to data file @param { Object } mo - master object @description It uses XMLHttpRequest which has to be run on a server .
function updateDataFromRemote(path, mo) {
  var xhr = new XMLHttpRequest();
  xhr.onreadystatechange = function() {
    if (this.readyState == 4) {
      if (this.status == 200) {
        var cache = updateDataFromText(this.responseText, mo.data);
        updateViewByData(mo, cache);
      }
    }
  }
  xhr.open('GET', path, true);
  xhr.send();
}
function updateDataFromRemote ( path , mo ) { var xhr = new XMLHttpRequest ( ) ; xhr . onreadystatechange = function ( ) { if ( this . readyState == 4 ) { if ( this . status == 200 ) { var cache = updateDataFromText ( this . responseText , mo . data ) ; updateViewByData ( mo , cache ) ; } } } xhr . open ( 'GET' , path , true ) ; xhr . send ( ) ; }
Import data from a remote location
 @function updateDataFromRemote
 @param {string} path - remote path to data file
 @param {Object} mo - master object
 @description It uses XMLHttpRequest, which has to be run on a server.
Import data from a remote location @function updateDataFromRemote @param { string } path - remote path to data file @param { Object } mo - master object @description It uses XMLHttpRequest which has to be run on a server .