/** * Outputs the AJAX-powered JavaScript to the browser. It is meant to be used * by renderJavaScript() * * @access private */ function _renderAJAXJavaScript() { jpimport('helpers.sajax', true); sajax_init(); sajax_force_page_ajax(); sajax_export('toggle', 'filepane', 'folderpane'); ?> <script language="JavaScript" type="text/javascript"> /* * (S)AJAX Library code */ <?php sajax_show_javascript(); ?> sajax_fail_handle = SAJAXTrap; function SAJAXTrap( myData ) { alert('Invalid AJAX reponse: ' + myData); } var globRoot = ''; function toggle( fileName ) { x_toggle( fileName, toggle_cb ); } function toggle_cb( myRet ) { filepane(); } function filepane() { x_filepane( globRoot, filepane_cb ); } function filepane_cb( myRet ) { document.getElementById('filepane').innerHTML = myRet; } function folderpane( path ) { globRoot = path; document.getElementById('currentdirectory').innerHTML = globRoot; x_folderpane( globRoot, folderpane_cb ); } function folderpane_cb( myRet ) { document.getElementById('folderpane').innerHTML = myRet; filepane(); } </script> <?php }
public function __construct() { sajax_init(); sajax_export("AJAXSynchronizeDB"); sajax_export("AJAXSynchronizeOffersCount"); sajax_handle_client_request(); $this->synchronizeDB = $this->GetSynchronizeJS(); $this->synchronizeOffersCount = $this->GetSynchronizeOffersCount(); $this->ajax = sajax_show_javascript(); }
/** * Outputs the AJAX-powered JavaScript to the browser. It is meant to be used * by renderJavaScript() * * @access private */ function _renderAJAXJavaScript() { jpimport('helpers.sajax', true); sajax_init(); sajax_force_page_ajax(); sajax_export('toggle', 'tablepane'); ?> <script language="JavaScript" type="text/javascript"> /* * (S)AJAX Library code */ <?php sajax_show_javascript(); ?> sajax_fail_handle = SAJAXTrap; function SAJAXTrap( myData ) { alert('Invalid AJAX reponse: ' + myData); } function toggle( table ) { x_toggle( table, toggle_cb ); } function toggle_cb( myRet ) { tablepane(); } function tablepane() { x_tablepane( tablepane_cb ); } function tablepane_cb( myRet ) { document.getElementById('tablepane').innerHTML = myRet; } </script> <?php }
# your option) any later version. # # This file is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public # License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this file. If not, see <http://www.gnu.org/licenses/>. # # }}} # include "defs.php3"; include_once "template_defs.php"; require "Sajax.php"; sajax_init(); sajax_export("Show", "GraphChange"); # # Only known and logged in users ... # $this_user = CheckLoginOrDie(); $uid = $this_user->uid(); $isadmin = ISADMIN(); # # Verify page arguments # $reqargs = RequiredPageArguments("template", PAGEARG_TEMPLATE); $optargs = OptionalPageArguments("action", PAGEARG_STRING, "show", PAGEARG_STRING, "confirmed", PAGEARG_STRING); if (!($experiment = $template->GetExperiment())) { TBERROR("Could not find experiment object for template!", 1); }
function commonSAJAX() { jpimport('helpers.sajax'); sajax_init(); sajax_force_page_ajax(); sajax_export('toggleDBFilter', 'DBSelectionHTML', 'ResetDBEF', 'FilterNonJoomlaTables'); }
function commonSAJAX() { jpimport('helpers.sajax'); sajax_init(); sajax_force_page_ajax(); sajax_export('toggleFileFilter', 'sffSelectionHTML'); }
function commonSAJAX() { jpimport('helpers.sajax'); sajax_init(); sajax_force_page_ajax(); sajax_export('getDefaultOutputDirectory', 'getDeafultTempDirectory'); }
/** * Sets up the pages AJAX functions. * * @author Ben Dodson * @version 1/12/05 * @since 1/12/05 */ function handleAJAX() { global $include_path, $jukebox, $my_frontend; // AJAX: $ajax_list = array(); @(include_once $include_path . "frontend/frontends/{$my_frontend}/ajax.php"); @(include_once $include_path . "frontend/frontends/{$my_frontend}/ajax_scripts.php"); @(include_once $include_path . "frontend/ajax.php"); @(include_once $include_path . "frontend/ajax_scripts.php"); if ($jukebox == "true") { include_once $include_path . "jukebox/ajax.php"; include_once $include_path . "jukebox/ajax_scripts.php"; } if (sizeof($ajax_list > 0)) { // This frontend has AJAX functions: global $sajax_debug_mode, $sajax_export_list, $sajax_request_type, $sajax_remote_uri; $sajax_debug_mode = 0; include_once $include_path . "lib/Sajax.php"; sajax_init(); for ($i = 0; $i < sizeof($ajax_list); $i++) { sajax_export($ajax_list[$i]); } echo "\n<script>\n"; sajax_show_javascript(); echo "\n</script>\n"; } }
function commonSAJAX() { jpimport('helpers.sajax'); sajax_init(); sajax_force_page_ajax(); sajax_export('testdatabase', 'getMultiDBList', 'toggleMultiDBActive'); }
function commonSAJAX() { jpimport('helpers.sajax'); sajax_init(); sajax_force_page_ajax(); sajax_export('tick', 'errorTrapReporting'); }
function commonSAJAX() { jpimport('helpers.sajax'); sajax_init(); sajax_force_page_ajax(); sajax_export('deleteBackup'); }