40 $this->tParam=$tParam;
44 private function parseUrl($sUrl){
45 $sUrl=preg_replace(
'/&/',
'&',$sUrl);
47 foreach($this->tParam as $sParam){
48 $sUrl=preg_replace(
'/\$'.$sParam.
'/',
"'+$sParam+'",$sUrl);
62 $sUrl=$this->parseUrl($sUrl);
67 success:
function(response) {
69 $(\
'#'.$sCible.
'\').html(response);
81 public function addLinkCallFunction($sUrl,$sFunction){
82 $sUrl=$this->parseUrl($sUrl);
87 success:
function(response) {
89 '.$sFunction.'(response);
101 public function addModifyElement($sCible,$sAction,$sParam=null){
102 $this->sJs.=' $(\
'#'.$sCible.
'\').
'.$sAction.'(
'.$sParam.');
';
111 public function addJs($sTxt){
120 public function getJs(){
121 $sParams=implode($this->tParam,',
');
122 return '<script language=
"Javascript">
function '.$this->sName.'(
'.$sParams.'){
'.$this->sJs.'}</script>
';
__construct($sName, $tParam=null)
addLinkUpdateElement($sUrl, $sCible)