A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/data_collection/api/datacollection_load_method/ below:

JavaScript DataCollection - load Method

component.data.load("../common/data.xml", "xml");

Related sample: Data. Load

info

Please note that if you specify the id fields in the loaded data collection, their values should be unique. You can also omit the id fields in the data collection. In this case they will be generated automatically.

The component will make an AJAX call and expect the remote URL to provide valid JSON data.

Data loading is asynchronous, so you need to wrap any after-loading code into a promise:

component.data.load(url).then(function(){

});

or

component.data.load(url);
component.data.loadData.then(function(){

});



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4