Answer the question
In order to leave comments, you need to log in
ExtJS function call in callback(is not defined)?
Hello everyone, help me solve the problem, the ExtJS framework
The function is not called in the callback of another function
textFormater : function(text){
//some code
},
loginForm : function(){
//jQuery
$("onClickBtn").click(function(){
var text = textFormater("SomeText"); //Uncaught ReferenceError: textFormater is not defined
});
}
Answer the question
In order to leave comments, you need to log in
loginForm : function(){
var me = this;
//jQuery
$("onClickBtn").click(function(){
var text = me.textFormater("SomeText"); //Uncaught ReferenceError: textFormater is not defined
});
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question