Function call with Argument

[ onclick="new RSPA.Execute('MyClass.functionWithParm()', { parameters: new Array('This was the argument u passed','2nd arg')})" ]

class MyClass extends Form{

function functionWithParm($arg, $arg1){

      $this->name2->value = $arg. " ". $arg1;

}

}


Execute javascript at client

[ onclick="new RSPA.Execute('MyClass.executeJS()' ) ]

class MyClass extends Form{

function executeJS(){

       $this->clientExecute("alert('Time on server is ".date('d/m/Y h:m:s')."');");

}

}