loads records from the server
data | string|object | XML/JSON source from which records will be loaded |
doOnLoad | function | (optional) calls user-defined handler after data is loaded and rendered |
promise | a "promise" object |
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
});
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
added in version 2.3
Back to top