function scanDataFolder(){ $.ajax({ type: 'GET', url: 'php/DirScan_main.php', //data: "type="+type+"&query="+jsonparams, //contentType: "application/json", //dataType: 'json', success : function(data){ console.log(data); dataFolderTree=data; }, error: function(){ console.log('Page Not found: updateLeftPanel_uni()'); } }); } function getGexfPath(v){ gexfpath=(gexfDictReverse[v])?gexfDictReverse[v]:v; return gexfpath; } function getGexfLegend(gexfPath){ legend=(gexfDict[gexfPath])?gexfDict[gexfPath]:gexfPath; return legend; } function jsActionOnGexfSelector(gexfLegend){ window.location=window.location.origin+window.location.pathname+"?file="+encodeURIComponent(getGexfPath(gexfLegend)); } function listGexfs(){ divlen=$("#gexfs").length; if(divlen>0) { param = JSON.stringify(gexfDict); $.ajax({ type: 'GET', url: 'php/listFiles.php', //contentType: "application/json", //dataType: 'json', success : function(data){ html=""; $("#gexfs").html(html); }, error: function(){ console.log("Page Not found."); } }); } }