Hi furesoft,
You probably intended to define your function like this:
Cheers!
You probably intended to define your function like this:
function WebClient() { this.DownloadString = function (path, callback) { var wc = new System.Net.WebClient(); var result = wc.DownloadString(path); if (typeof(callback) != 'undefined') { callback(result); } return result; }; }