Need help with an OOP problem.

Need help with an OOP problem.

I have the following code, calling a method in my main class:


  1. some_func:function(){
  2.         $.ajax({
                  url: '/actions.php',
                  success: function(data) {
                    $('#actions').html(data);
                    $('.add_button').click(function(e){
                        this.add_something();
                    });
                    $('.del_button').click(function(e){
                        this.del_something();
                    });
                  }
            }); 











  3. },

  4. add_something: function(){
  5. }

However, I know right off the bat that the call for 'this' will not be for the class, but instead, I'm assuming, would be in the scope of the click method.  When I've run the code, I get an error stating there is no method for this.

Can anyone give me a heads up as to how to call my actual class to call the method, and not this error-filled problem?

Thanks in advance!