function RemoteTextEditor(textBoxID, textFileSelectID, filesDir) {
	this.textBoxID = textBoxID;
	this.textFileSelectID = textFileSelectID;
	this.filesDir = filesDir;

	this.SaveFile = (function(fileName) {

	}).bind(this)




	this.GetFileList = (function() {
		// Create request

		// Create request function
	}).bind(this)




	this.LoadFileContents = (function() {

	}).bind(this)




	this.Sample = (function() {

	}).bind(this)
}
@@ -158,16 +158,54 @@
 ilesDir;
+%0A%09this.xmlhttp = new XMLHttpRequest();
 %0A%0A%09this.
@@ -234,24 +234,87 @@
 ileName) %7B%0A%0A
+%09%09xmlhttp.onreadystatechange = (function() %7B%0A%0A%09%09%7D).bind(this)%0A%0A
 %09%7D).bind(thi
@@ -377,38 +377,509 @@
 uest
-%0A%0A%09%09// Create request function
+ function%0A%09%09xmlhttp.onreadystatechange = function(selectEleID)%7B%0A%09%09%09var filesArray = JSON.parse(xmlhttp.responseText);%0A%09%09%09var selectEle = document.getElementById(selectEleID);%0A%09%09%09var selectOptions = %22%22;%0A%0A%09%09%09while (selectEle.length %3E 0) %7B%0A%09%09%09%09selectEle.remove(0);%0A%09%09%09%7D%0A%0A%09%09%09for (var file = 0; file %3C filesArray.length; file++) %7B%0A%09%09%09%09selectEle.add(filesArray%5Bfile%5D);%0A%09%09%09%7D;%0A%0A%09%09%7D(this.textFileSelectID);%0A%0A%09%09// Create request%0A%09%09xmlhttp.open(%22GET%22, %22GetFileList.php%22);%0A%0A%09%09// send request%0A%09%09xmlhttp.send(null);
 %0A%09%7D)

build GetFileList method