Hi there,

I'm creating a class to display data in a table. In my class i have
this function:

loadJSON: function(url) {
    this.result = null;
    new Request.JSON({
        url: url,
        method: 'get',
        onSuccess: function(json) {
            this.result = json;
        }
    }).send();
    return this.result;
}

Now if i alert the result retuned from the function with alert
(this.loadJSON(this.options.dataUrl)); It simply alrtes "null".

What am i missing here ?

Reply via email to