DHTMLX Docs & Samples Explorer

Index
dhtmlxdataview
API Methods

## load (url, type, callback)

Required library edition:

Required library file: dhtmlxdataview.js

Loads data from remote url

- url - data url, need to be in the same domain
- callback
- type - type of data
  - “xml”
  - “html”
  - “json”
  - “jsarray”
  - “csv”

    	view.load("data.xml");
    	view.load("data.xml",function(){
    		//callback
    	});
    	//or
    	view.load("data.xml","xml");
    	view.load("data.json","json");
    	//or
    	view.load("data.xml","xml",function(){
    		//callback
    	});

- Callback is always the last parameter.
- Methos is async., so you need to use callback to catch the moment when data is really loaded in the view.