|
Answer» The syntax of CONNECT function is
$.connect(sourceObj/*OBJECT*/, sourceFunc/*string*/, callObj/*object*/, callFunc/*string or Func*/)
- sourceObj(optional) is the object of the SOURCE function to which we want to connect.
- sourceFunc is the function name to which we want to connect.
- callObj(optional) is the object which we want to use for the handler function.
- callFunc is the function that we want to execute when sourceFunc is executed.
Here sourceObj, callObj are optional for the global FUNCTIONS.
suppose if your sourceFunc is global function then no need to pass the sourceObj or you can use NULL or self.
suppose if your callObj is global function then no need to pass the callObj or you can use null or self. The syntax of connect function is
$.connect(sourceObj/*object*/, sourceFunc/*string*/, callObj/*object*/, callFunc/*string or Func*/) Here sourceObj, callObj are optional for the global functions.
suppose if your sourceFunc is global function then no need to pass the sourceObj or you can use null or self.
suppose if your callObj is global function then no need to pass the callObj or you can use null or self.
|