savefile(filepath,filecontent)

Parameters

- filepath the relative path to the file to be saved

- filecontent the content of the file to store

This will save the file content to the disk. The DfW version will add a /static to the path to let it save in the same place on disk as the server version.

$("#save").on('click',function(me){ 
  var elm=$("#dqlcontent");
  var code = elm.val();
  dec.savefile(dec.url,code);
});<br>

The code used in the DQLEdit code