in javascript I have one class
MyClass = {
...
}
In some part of the code, I would like to do MyClass.SomeFunction(arg1, arg2, ...);
using prototype (maybe) I would like to take the name took and arguments and do a generic function.
Objective it is to build something similar like PageMethods like in asp.net to have a clear code.
Can you help me to start? maybe giving some web page with samples or tutorial.
In javascript I was thinking to use $.fn but I don't know how to start.
The idea it is have a generic function class inside MyClass, I dont know if it is possible, maybe using jquery