[jQuery] help on accessing "this" inside callback function of a object
hi,
Sorry if the subject sounds crazy. I have this MainPage object below
function MainPage(){
this.init = function(){
$('#sample').click(function(){
// here is my problem, inside this anonymous function how can I
access the method_one function?
this.method_one(param_1, param_2);
});
}
this.method_one = function(param_1, param_2){
$(param_1).load(param_2);
}
}
Thanks
james