PhpRiot
Recent Code Pastes

Listing 1619

Submitted by PHPRO.ORG, 9 October 2008
<?php
 
        public function __construct()
        {
                /*** the xajax url ***/
                $this->xajax_url = $this->getAddress();
                /*** new template object ***/
                $this->template = new template;
 
                /*** light up xajax ***/
                $lxajax = new xajax;
                $lxajax->setFlag( 'debug', true );
                $lxajax->register(XAJAX_FUNCTION, array('login_submit', $this, 'login_submit') );
                $lxajax->register(XAJAX_FUNCTION, array('logout', $this, 'logout') );
                $lxajax->configure('requestURI', $this->xajax_url);
                $objResponse = new xajaxResponse();
                $lxajax->processRequest();
                $this->template->login_js = $lxajax->getJavascript(__DOC_ROOT.'/xajax/');
        }
 
?>
Submit a Follow Up

Followups: