Ejemplo n.º 1
0
 /**
  * Cria o comando JavaScript
  * @return method 
  */
 public function createJS()
 {
     $this->addHeadScriptFile(ZendT_Url::getBaseDiretoryPublic() . '/scripts/jquery/plugin/ButtonWindowT.js');
     $clickFunction = parent::createJS() . '
             function ' . $this->_getFunctionName() . '(){
                 if($(\'iframe[name="downloadFile"]\').attr(\'name\') == undefined){
                     $(\'html\').append(\'<iframe name="downloadFile"></iframe>\');
                 }
                 $(\'iframe[name="downloadFile"]\')                    
                 .attr(\'src\',\'' . $this->getUrl() . '?' . $this->getParam() . '\');
             }
         ';
     $this->addHeadScript($this->getId(), $clickFunction);
     return $clickFunction;
 }
Ejemplo n.º 2
0
 /**
  * Cria o comando JavaScript
  * @return method 
  */
 public function createJS()
 {
     $this->addHeadScriptFile(ZendT_Url::getBaseDiretoryPublic() . '/scripts/jquery/plugin/ButtonWindowT.js');
     $clickFunction = parent::createJS() . '
             function ' . $this->_getFunctionName() . '(){
                 jQuery.ButtonWindowT({
                     url: "' . $this->getUrl() . '",
                     method: "' . $this->getMethod() . '",
                     param: "' . $this->getParam() . '",
                     windowHeight: ' . $this->getWindowHeight() . ',
                     windowWidth: ' . $this->getWindowWidth() . ',
                     type: "' . $this->getType() . '",
                     fullscreen: "' . $this->getFullScreen() . '"
                 });
             }
         ';
     $this->addHeadScript($this->getId(), $clickFunction);
     return $clickFunction;
 }
Ejemplo n.º 3
0
 /**
  * Cria o comando JavaScript
  * @return method 
  */
 public function createJS()
 {
     $this->addHeadScriptFile(ZendT_Url::getBaseDiretoryPublic() . '/scripts/jquery/plugin/ButtonAjaxT.js');
     $clickFunction = parent::createJS() . '
             function ' . $this->_getFunctionName() . '(){
                 jQuery.ButtonAjaxT({
                     url: "' . $this->getUrl() . '",
                     method: "' . $this->getMethod() . '",
                     param: "' . $this->getParam() . '",
                     onConfirm: ' . $this->getOnConfirm() . ',
                     onAfterLoad: ' . $this->getOnAfterLoad() . '
                 });
             }
         ';
     $this->addHeadScript($this->getId(), $clickFunction);
     return $clickFunction;
 }