Hi all,
I have an issue that I really cannot find out how to solve.
Here is an example of what I'd like to do :
- function object() {
- this.init = function() {
- $(".object").click(function(event) {
- var val = $(this).val();
- this.process(val);
- });
- }
- this.process = function(val) {
- // DO SOMETHING
- }
- }
Not surprisingly, this is not working. In fact, the function in the click event cannot find the method this.process.
Is there a way to call my process method here ?
I really need to keep this process method in my object and cannot move it out of the object.
How can I do ?
Thanks for your time,
Olivier