Required library edition:
Required library file: dhtmlxfolders.js
enables/disables smart refresh mode, when loading XML proceeds to refreshing folders content if any new item came from server (it checks number of items and each item id)
var mode = document.getElementById('smart_flag').checked myFolders.enableXMLSmartRefresh(mode); if(!mode) myFolders.clearAll(); myFolders.loadXML(url);