Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: object does not contains method or property

$
0
0
hi,
i have this js code:
function WebClient() {

    DownloadString: function (path, callback){
        var wc = new System.Net.WebClient();
            
        var result = wc.DownloadString(path);
        if (typeof(callback) != "undefined")
        {
                callback(result);
        }
        return result;
    };

}
and when i use this class:
var w = new WebClient();
w.DownloadString("http://www.google.de/");
come error: object does not contains method or property
but all is correct?

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles



Latest Images