當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sajax_init函數代碼示例

本文整理匯總了PHP中sajax_init函數的典型用法代碼示例。如果您正苦於以下問題:PHP sajax_init函數的具體用法?PHP sajax_init怎麽用?PHP sajax_init使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了sajax_init函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _renderAJAXJavaScript

    /**
     * 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 
    }
開發者ID:albertobraschi,項目名稱:Hab,代碼行數:63,代碼來源:sff.php

示例2: __construct

 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();
 }
開發者ID:uirapuru,項目名稱:virgoapi,代碼行數:10,代碼來源:api.php

示例3: _renderAJAXJavaScript

    /**
     * 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 
    }
開發者ID:albertobraschi,項目名稱:Hab,代碼行數:48,代碼來源:dbef.php

示例4: sajax_init

# 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);
}
開發者ID:mahyuddin,項目名稱:emulab-stable,代碼行數:31,代碼來源:template_show.php

示例5: commonSAJAX

 function commonSAJAX()
 {
     jpimport('helpers.sajax');
     sajax_init();
     sajax_force_page_ajax();
     sajax_export('toggleDBFilter', 'DBSelectionHTML', 'ResetDBEF', 'FilterNonJoomlaTables');
 }
開發者ID:reeleis,項目名稱:ohiocitycycles,代碼行數:7,代碼來源:dbef.php

示例6: commonSAJAX

 function commonSAJAX()
 {
     jpimport('helpers.sajax');
     sajax_init();
     sajax_force_page_ajax();
     sajax_export('toggleFileFilter', 'sffSelectionHTML');
 }
開發者ID:reeleis,項目名稱:ohiocitycycles,代碼行數:7,代碼來源:sff.php

示例7: handleAJAX

 /**
  * 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";
     }
 }
開發者ID:seanfbrown,項目名稱:jinzora,代碼行數:34,代碼來源:display.php

示例8: commonSAJAX

 function commonSAJAX()
 {
     jpimport('helpers.sajax');
     sajax_init();
     sajax_force_page_ajax();
     sajax_export('testdatabase', 'getMultiDBList', 'toggleMultiDBActive');
 }
開發者ID:reeleis,項目名稱:ohiocitycycles,代碼行數:7,代碼來源:multidb.php

示例9: commonSAJAX

 function commonSAJAX()
 {
     jpimport('helpers.sajax');
     sajax_init();
     sajax_force_page_ajax();
     sajax_export('deleteBackup');
 }
開發者ID:reeleis,項目名稱:ohiocitycycles,代碼行數:7,代碼來源:backupadmin.php


注:本文中的sajax_init函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。