Пред, пытаюс написать JS класс с вызовом веб сервиса.
Падает на строке this.render();
Кто нибудь в курсе почему?
function BaseClass() {
this.container = null;
this.onLoading = function() {
this.render();
}
this.onFailed = function() {
this.render();
}
this.render = function() {
this.container.innerHTML = "Test";
}
}
// --------------------------------------------------------------------------
WeatherClass.prototype = new BaseClass();
function WeatherClass(container) {
this.container = container;
this.load = function() {
WebService.GetWeather(this.onSuccess, this.onFailed);
}
this.onSuccess = function(data) {
this.render(); /////// Здесь падает: this.render is not a function
}
}
Данное сообщение получено с сайта GotDotNet.RU
Последний раз редактировалось 23 May 2008 02:01
|