Check documentation for the latest version of dhtmlxSuite load DHTMLX Docs

load

loads records from the server

promise load(string|object data, [function doOnLoad] );

Parameters

datastring|objectXML/JSON source from which records will be loaded
doOnLoadfunction(optional) calls user-defined handler after data is loaded and rendered

Returns

promisea "promise" object

Example

myVault.load("get_records.php", function(){
    // files are loaded
    // your code here
});
// returns a "promise" object, see details
myVault.load(url).then(function(text){
    // text - a server side response
});

Details

This API page is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ to see API reference for the current version of dhtmlxVault.

With the help of this method you can show the previously uploaded files.

JSON format:

[
    // single file record
    {
        name:       "price.xls", // file name, required
        serverName: "price.xls", // server name, optional, 'name' is used if omitted
        size:       257412       // file size, optional
    },
    {}, // one more file
    {}  // one more file
]

XML format:

<?xml version="1.0" encoding="UTF-8"?>
<files>
    <file name="price.xls" serverName="price.xls" size="257412"/>
    <file ... />
    <file ... />
</files>

DHTMLX is integrated with Promiz.js library to treat the result of asynchronous operations (like data loading) without callbacks. Read more about integration of DHTMLX with Promix.js

Change log

added in version 2.3

Back to top