function ReadFile() { //some code var data= read(fileName); alert(data); } //J query function function read(fileName) { $.get(fileName, function (data) { szData = new String(data); },"text"); return szData; }
function ShowReadFilecontent(objFileName) { var result; $.ajax({ url: objFileName, type: 'get', dataType: 'htm', async: false, success: function (data) { result = data; } }); return result }
function ReadFile() { //some code var data= read(fileName) alert(data); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)