当前位置: 首页>>代码示例>>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;未经允许,请勿转载。