当前位置: 首页>>代码示例>>PHP>>正文


PHP xajax::printJavascript方法代码示例

本文整理汇总了PHP中xajax::printJavascript方法的典型用法代码示例。如果您正苦于以下问题:PHP xajax::printJavascript方法的具体用法?PHP xajax::printJavascript怎么用?PHP xajax::printJavascript使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xajax的用法示例。


在下文中一共展示了xajax::printJavascript方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _moduleContent

function _moduleContent(&$smarty, $module_name)
{
    //include elastix framework
    include_once "libs/paloSantoGrid.class.php";
    include_once "libs/paloSantoValidar.class.php";
    include_once "libs/paloSantoConfig.class.php";
    include_once "libs/misc.lib.php";
    include_once "libs/paloSantoForm.class.php";
    include_once "libs/xajax/xajax.inc.php";
    //include module files
    include_once "modules/{$module_name}/configs/default.conf.php";
    include_once "modules/{$module_name}/libs/paloSantoDeleteModule.class.php";
    global $arrConf;
    //include lang local module
    global $arrLangModule;
    $lang = get_language();
    $lang_file = "modules/{$module_name}/lang/{$lang}.lang";
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    if (file_exists("{$base_dir}/{$lang_file}")) {
        include_once $lang_file;
    } else {
        include_once "modules/{$module_name}/lang/en.lang";
    }
    //folder path for custom templates
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    $templates_dir = isset($arrConfig['templates_dir']) ? $arrConfig['templates_dir'] : 'themes';
    $local_templates_dir = "{$base_dir}/modules/{$module_name}/" . $templates_dir . '/' . $arrConf['theme'];
    require_once 'libs/paloSantoDB.class.php';
    $pDB_acl = new paloDB($arrConf['elastix_dsn']['acl']);
    if (!empty($pDB_acl->errMsg)) {
        echo "ERROR DE DB: {$pDB_acl->errMsg} <br>";
    }
    $pDB_menu = new paloDB($arrConf['elastix_dsn']['menu']);
    if (!empty($pDB_menu->errMsg)) {
        echo "ERROR DE DB: {$pDB_menu->errMsg} <br>";
    }
    $xajax = new xajax();
    $xajax->registerFunction("mostrar_menu");
    $xajax->processRequests();
    $content = $xajax->printJavascript("libs/xajax/");
    $delete = isset($_POST['delete']) ? $_POST['delete'] : '';
    if ($delete != '') {
        $accion = 'delete_module';
    } else {
        $accion = "report_delete_module";
    }
    switch ($accion) {
        case 'delete_module':
            $content .= delete_module($smarty, $module_name, $local_templates_dir, $arrLangModule, $pDB_acl, $pDB_menu);
            break;
        default:
            $content .= report_delete_module($smarty, $module_name, $local_templates_dir, $arrLangModule, $pDB_acl);
            break;
    }
    return $content;
}
开发者ID:hardikk,项目名称:HNH,代码行数:56,代码来源:index.php

示例2: xajax

define('PEERSITE', $root_url . '/');
include 'jaagnavtable.php';
$xajax = new xajax();
include TREEVIEW_SOURCE . "ajax/ajax.php";
//Enables real-time update. Must be called before any headers or HTML output have been sent.
$xajax->processRequests();
//Define identify name(s) to your treeview(s); Add more comma separated names to create more than one treeview. The treeview names must always be unique. You can´t even use the same treeview names on different php sites.
require_once 'treebuilder.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Url TreeView</title>
<?php 
$xajax->printJavascript(TREEVIEW_SOURCE . "ajax/framework");
//Enables real-time update.
?>

                
<!-- some basic css properties to make it look ok -->
<link href="<?php 
echo TREEVIEW_SOURCE;
?>
css/style.css" rel="stylesheet" type="text/css"/>
</head>
  <body class='<?php 
echo BODY_CLASS;
?>
;'>
        
开发者ID:homberghp,项目名称:peerweb,代码行数:30,代码来源:jaagtree.php

示例3: remplacetas

$facebook = remplacetas('empresa', 'id', '1', 'facebook');
$twitter = remplacetas('empresa', 'id', '1', 'twitter');
$slogan = remplacetas('empresa', 'id', '1', 'slogan');
$web = remplacetas('empresa', 'id', '1', 'web');
?>
<!DOCTYPE html>
<html lang="en">
   <head >
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no, width=device-width,  maximum-scale=1,  initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="fredyrivera" >
     <?php 
$xajax->printJavascript("milfs/xajax/");
?>
    <link rel="shortcut icon" href="favicon-152.png">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,300' rel='stylesheet' type='text/css'>
	<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
	<link href="milfs/css/font-awesome/css/font-awesome.css" rel="stylesheet">
<!--  <link href="http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet"> -->

<!-- <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> -->

<!-- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> -->
<link href="milfs/css/bootstrap.min.css" rel="stylesheet">
<link href="milfs/css/estilos.php" rel="stylesheet">

<!--   <script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> -->
<!--   <link rel="points" type="application/json" href="json.php?id=<?php 
开发者ID:arttesano,项目名称:milfs,代码行数:31,代码来源:portal.php

示例4: jdGetScanStatus

*/
defined('_JEXEC') or die('Restricted Access');
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'xajax' . DS . 'xajax_core' . DS . 'xajax.inc.php';
$xajax = new xajax('index3.php?option=com_jdefender&controller=' . JRequest::getVar('controller'));
$xajax->registerFunction("jdBlockParam");
$xajax->registerFunction("jdStartScan");
$xajax->registerFunction("jdScanEnd");
$xajax->registerFunction("jdGetScanStatus");
$xajax->registerFunction("jdPublishBlock");
$xajax->registerFunction("jdPublishRule");
$xajax->registerFunction("jdReadFile");
//$xajax->registerFunction("open_folder");
//$xajax->registerFunction("close_folder");
//$xajax->registerFunction("jdGetDirectory");
$xajax->processRequest();
$xajax->printJavascript('components/com_jdefender/xajax/');
function jdGetScanStatus()
{
    require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'log.php';
    $objResponse = new xajaxResponse();
    $controller = new JDefenderControllerScan();
    $scanStatus = $controller->scan($doLog = JD_Scan_Helper::isLogging());
    $scanInfo = JD_Vars_Helper::getGroup('jdefender_scan');
    if (empty($scanInfo)) {
        $scanInfo = array();
    }
    unset($scanInfo['status']);
    $progress = 0;
    if (!empty($scanInfo['total'])) {
        $scanned = 0;
        $scanned += @$scanInfo['files'];
开发者ID:alphashuro,项目名称:audeprac,代码行数:31,代码来源:xajax.php

示例5: xajax

<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/Source/serviciotecnico/utilidades/xajax/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/Source/eventos/consultasHome.php';
$xajax = new xajax();
$xajax->registerFunction("mostrarCompras");
$xajax->registerFunction("mostrarVentas");
$xajax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Sistema EDUGER</title>
        <?php 
$xajax->printJavascript("../serviciotecnico/utilidades/xajax/");
?>
        <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
        <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            <!--
            .style8 {	font-family: Verdana, Arial, Helvetica, sans-serif;
                font-size: 10px;
                color: #FFFFFF;
            }
            -->
        </style>
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
开发者ID:Ludmito16,项目名称:proyectocontabilidad,代码行数:31,代码来源:home.php

示例6: xajax

$xajax = new xajax();
//$xajax->debugOn();
$myObj = new myObjectTest();
$myObj->myNumber = 50;
$xajax->registerFunction(array("testForm", &$myObj, "testInstanceMethod"));
$xajax->registerFunction(array("testForm2", "myObjectTest", "testClassMethod"));
$myObj->myNumber = 56;
$xajax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Register Object Test | xajax Tests</title>
<?php 
$xajax->printJavascript("../");
?>
</head>
<body>

<h2><a href="index.php">xajax Tests</a></h2>
<h1>Register Object Test</h1>

<form id="testForm1" onsubmit="return false;">
<p><input type="text" id="textBox1" name="textBox1" value="This is some text" /></p>
<p><input type="submit" value="Submit to Instance Method" onclick="xajax_testForm(xajax.getFormValues('testForm1')); return false;" /></p>
<p><input type="submit" value="Submit to Class Method" onclick="xajax_testForm2(xajax.getFormValues('testForm1')); return false;" /></p>
</form>

<div id="submittedDiv"></div>
开发者ID:dapfru,项目名称:gladiators,代码行数:30,代码来源:registerObjectTest.php

示例7: die

        die($conn->ErrorMsg());
    }
} else {
    $proc_data['name'] = '';
    $proc_data['description'] = '';
}
?>
<html>
<head>
  <title><?php 
_("Business Processes");
?>
</title>
  <link rel="stylesheet" href="../style/style.css"/>
<?php 
echo $xajax->printJavascript('', XAJAX_JS);
?>
<style type="text/css">
    .contents {
        width: 80%;
    }
    .row {
        clear: both;
    }
    .col1 {
        float: left;
        width: 50%;
    }
    .col2 {
        float: left;
        text-align: right;
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:bp_edit.php

示例8: xajaxResponse

    global $xajax;
    $xajax->_compile();
    $objResponse = new xajaxResponse();
    $objResponse->assign('submittedDiv', 'innerHTML', 'Compiled');
    return $objResponse;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Performance Test</title>

        <?php 
$xajax->printJavascript('../');
?>

        <script type = 'text/javascript'>
            nCumulativeTime = 0;

            nTrips = 0;

            accumulateTime = function(nTime)
                {
                nCumulativeTime += (nTime * 1);
                nTrips += 1;
                }

            printTime = function()
                {
开发者ID:nbgmaster,项目名称:wiflash,代码行数:31,代码来源:performance.php

示例9:

?>
	
<html>
	<title>玫瑰花苑</title>
	<head>
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="../css/index.css">
		<script src="../js/util/util.js"></script>
		<script src="../js/index.js"></script>
		<script src="../js/util/comm.js"></script>
		<script>
			var t_time = 100;
		</script>
		<?php $xajax->printJavascript('../xajax/'); ?>
	</head>
		
	<body>
		<table align="center" valign="top" cellspacing="0" cellpadding="0"  background="../img/page_bg.jpg" height="863px" width="1280px">
			<tr valign="top">
				<td style="padding-left:40px; padding-top:100px" width="350px" height="100px">
					<table cellspacing="0" cellpadding="0">
						<tr>
							<td>&nbsp;</td>
						</tr>
					</table>
				</td>
				<td style="padding-top:85px">
					<table border="0px" cellspacing="0" cellpadding="0">
						<tr>
开发者ID:redtears,项目名称:Garden-Rose,代码行数:31,代码来源:page.php

示例10:

    $clase->email = $_REQUEST["email"];
    //llamar a funcion eliminar
    if ($clase->eliminar_usuario()) {
        $mensaje = "Eliminado con exito";
    } else {
        $mensaje = "No se ha podido Eliminar";
    }
}
?>


<!DOCTYPE html>
<html lang="en">
<head>
<?php 
$ajax->printJavascript('xajax/');
?>
<title>Bienvenido</title>
<title>Bienvenido</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="http://bootstraptaste.com" />
<!-- css -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="css/jcarousel.css" rel="stylesheet" />
<link href="css/flexslider.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />

开发者ID:om3ga28,项目名称:gammingcollection,代码行数:29,代码来源:Mantenedor_usuario.php

示例11: getcwd

$xajax->registerFunction("exitTableProperty");
$xajax->registerFunction("editIndexProperty");
$xajax->registerFunction("exitIndexProperty");
$xajax->registerFunction("addIndexField");
$xajax->registerFunction("expandOSURow");
$xajax->registerFunction("collapseOSURow");
$xajax->registerFunction("collapseRow");
$xajax->registerFunction("expandRow");
// Process any requests.  Because our requestURI is the same as our html page,
// this must be called before any headers or HTML output have been sent
$xajax->processRequests();
$overwrite = true;
$jsfile = getcwd() . '/schema.js';
if (!file_exists($jsfile) || $overwrite) {
    ob_start();
    $xajax->printJavascript('../lib/xajax/');
    // output the xajax javascript. This must be called between the head tags
    $js = ob_get_contents();
    ob_end_clean();
    $pattern = '/(<script type="text\\/javascript">)(?P<jscript>[\\w\\W\\s]+)(<\\/script>)/U';
    if (preg_match($pattern, $js, $aMatch)) {
        $js = $aMatch['jscript'];
    } else {
        echo "Error parsing javascript generated by xAjax.  You should check the {$jsfile} manually.";
    }
    $fp = fopen($jsfile, 'w');
    if ($fp === false) {
        echo "Error opening output file {$jsfile} for writing.  Check permissions.";
        die;
    } else {
        fwrite($fp, $js);
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:31,代码来源:xajax.inc.php

示例12: xajax

<?php

require "GlobalSche.php";
set_include_dir(dirname(__FILE__) . "/../../Framework/Extensions/xajax/-");
if (empty($_POST) && !$_GET["oDataRequest"]) {
    require 'Extensions/wGui/wGui.includes.php';
}
include 'xajax_core/xajax.inc.php';
require_once "Extensions/wGui/wUI.php";
require_once "gspanel_class.php";
$xajax = new xajax();
$FormWindow = new wWindow("FormWindow");
$FormWindow->title = "Tareas Definidas";
$FormWindow->setCSS("width", "900px");
$FormWindow->type = WINDOW . FIXED;
$GSPAnel = new GSControlPanel($FormWindow, "Tareas", "gtask");
$GSPAnel->addTab("Pasos", "gstep", "gtask_id");
if (empty($_POST) && !$_GET["oDataRequest"]) {
    $FormWindow->render();
    $xajax->printJavascript($SYS["ROOT"] . "/Framework/Extensions/xajax");
} else {
    if ($_GET["oDataRequest"]) {
        $GSPAnel->aj_RequestData($_GET["instance"]);
    } else {
        $xajax->processRequest();
    }
}
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:27,代码来源:action_test.php

示例13: _moduleContent

function _moduleContent(&$smarty, $module_name)
{
    //include module files
    include_once "modules/{$module_name}/configs/default.conf.php";
    global $arrConf;
    $arrConf['cadena_dsn'] = "mysql://root:palosanto@localhost/hispana";
    // _pre($arrConf);
    // _pre($_SESSION);
    /*
        global $arrLang;
    
        #incluir el archivo de idioma de acuerdo al que este seleccionado
        #si el archivo de idioma no existe incluir el idioma por defecto
        $lang=get_language();
    
        $script_dir=dirname($_SERVER['SCRIPT_FILENAME']);
    
        // Include language file for EN, then for local, and merge the two.
        include_once("modules/$module_name/lang/en.lang");
        $lang_file="modules/$module_name/lang/$lang.lang";
        if (file_exists("$script_dir/$lang_file")) {
            $arrLangModuleEN = $arrLangModule;
            include_once($lang_file);
            $arrLangModule = array_merge($arrLangModuleEN, $arrLangModule);
        }
    */
    load_language_module($module_name);
    require_once "modules/{$module_name}/libs/paloSantoDataForm.class.php";
    //folder path for custom templates
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    $templates_dir = isset($arrConfig['templates_dir']) ? $arrConfig['templates_dir'] : 'themes';
    $local_templates_dir = "{$base_dir}/modules/{$module_name}/" . $templates_dir . '/' . $arrConf['theme'];
    // Definición del formulario de nueva formulario
    $smarty->assign("MODULE_NAME", $module_name);
    $smarty->assign("REQUIRED_FIELD", _tr('Required field'));
    $smarty->assign("CANCEL", _tr('Cancel'));
    $smarty->assign("APPLY_CHANGES", _tr('Apply changes'));
    $smarty->assign("SAVE", _tr('Save'));
    $smarty->assign("EDIT", _tr('Edit'));
    $smarty->assign("DESCATIVATE", _tr('Desactivate'));
    $smarty->assign("DELETE", _tr('Delete'));
    $smarty->assign("CONFIRM_CONTINUE", _tr('Are you sure you wish to continue?'));
    $smarty->assign("new_field", _tr('New Field'));
    $smarty->assign("add_field", _tr('Add Field'));
    $smarty->assign("update_field", _tr('Update Field'));
    $smarty->assign("CONFIRM_DELETE", _tr('Are you sure you wish to delete form?'));
    //Definicion de campos
    $formCampos = array('form_nombre' => array("LABEL" => _tr('Form Name'), "REQUIRED" => "yes", "INPUT_TYPE" => "TEXT", "INPUT_EXTRA_PARAM" => array("size" => "60"), "VALIDATION_TYPE" => "text", "VALIDATION_EXTRA_PARAM" => ""), 'form_description' => array("LABEL" => _tr('Form Description'), "REQUIRED" => "no", "INPUT_TYPE" => "TEXTAREA", "INPUT_EXTRA_PARAM" => "", "VALIDATION_TYPE" => "text", "VALIDATION_EXTRA_PARAM" => "", "COLS" => "33", "ROWS" => "2"), 'field_nombre' => array("LABEL" => _tr('Field Name'), "REQUIRED" => "yes", "INPUT_TYPE" => "TEXTAREA", "INPUT_EXTRA_PARAM" => "", "VALIDATION_TYPE" => "text", "VALIDATION_EXTRA_PARAM" => "", "COLS" => "50", "ROWS" => "2"), "order" => array("LABEL" => _tr('Order'), "REQUIRED" => "yes", "INPUT_TYPE" => "TEXT", "INPUT_EXTRA_PARAM" => array("size" => "3"), "VALIDATION_TYPE" => "numeric", "VALIDATION_EXTRA_PARAM" => ""));
    $smarty->assign("type", _tr('Type'));
    $smarty->assign("select_type", "type");
    $arr_type = array("VALUE" => array("TEXT", "LIST", "DATE", "TEXTAREA", "LABEL"), "NAME" => array(_tr('Type Text'), _tr('Type List'), _tr('Type Date'), _tr('Type Text Area'), _tr('Type Label')), "SELECTED" => "TEXT");
    $smarty->assign("option_type", $arr_type);
    $smarty->assign("item_list", _tr('List Item'));
    $smarty->assign("agregar", _tr('Add Item'));
    $smarty->assign("quitar", _tr('Remove Item'));
    $oForm = new paloForm($smarty, $formCampos);
    // print_r($_SESSION['ayuda']);
    $xajax = new xajax();
    $xajax->registerFunction("agregar_campos_formulario");
    $xajax->registerFunction("cancelar_formulario_ingreso");
    $xajax->registerFunction("guardar_formulario");
    $xajax->registerFunction("eliminar_campos_formulario");
    $xajax->registerFunction("editar_campo_formulario");
    $xajax->registerFunction("update_campo_formulario");
    $xajax->registerFunction("cancel_campo_formulario");
    $xajax->registerFunction("desactivar_formulario");
    $xajax->processRequests();
    $smarty->assign("xajax_javascript", $xajax->printJavascript("libs/xajax/"));
    $pDB = new paloDB($arrConf['cadena_dsn']);
    if (!is_object($pDB->conn) || $pDB->errMsg != "") {
        $smarty->assign("mb_message", _tr('Error when connecting to database') . " " . $pDB->errMsg);
    }
    if (isset($_POST['submit_create_form'])) {
        $contenidoModulo = new_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
    } else {
        if (isset($_POST['edit'])) {
            $contenidoModulo = edit_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
        } else {
            if (isset($_POST['delete'])) {
                $contenidoModulo = delete_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
            } else {
                if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == "view") {
                    $contenidoModulo = view_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
                } else {
                    if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == "activar") {
                        $contenidoModulo = activar_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
                    } else {
                        if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == "editarCampo") {
                            $contenidoModulo = editar_campo_status($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
                        } else {
                            $contenidoModulo = listadoForm($pDB, $smarty, $module_name, $local_templates_dir);
                        }
                    }
                }
            }
        }
    }
    return $contenidoModulo;
}
开发者ID:veraveramanolo,项目名称:cpc2c_uio,代码行数:99,代码来源:index.php

示例14: validaDigitos

<?php 
require '/home/silvia.valdez/public_html/ECG/inc/vars.php';
require '/home/silvia.valdez/public_html/ECG/inc/grid.php';
require '/home/silvia.valdez/public_html/ECG/inc/scrollBar.php';
require '/home/silvia.valdez/public_html/ECG/inc/download.php';
?>

<!DOCTYPE HTML>
<html>
	<head>
		<title> ECG Signals Viewer </title>

		<?php 
#Indicamos al objeto xajax se encargue de generar el javascript necesario.
$xajax->printJavascript("/ECG/xajax/");
?>
 

		<script>		
		//Valida la entrada de dígitos en inputs.
	   	function validaDigitos(e) {
			var keynum = window.event ? window.event.keyCode : e.which;
			if (keynum == 8)
				return true;					 
			return /\d/.test(String.fromCharCode(keynum));
		};
		
		function actualizarIndices() {
			if(tabla == "") {
				pintarGrid();
开发者ID:silvia-valdez,项目名称:SignalsViewer,代码行数:30,代码来源:index.php

示例15: array

$xajax->registerFunction("testFormFail");
$xajax->registerFunction("testFormExpire");
$xajax->processRequest();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Call Techniques Test | xajax Tests</title>

        <?php 
$xajax_files = array();
$xajax_files[] = array("xajax_js/xajax_core.js", "xajax");
//	$xajax_files[] = array("xajax_js/xajax_debug.js", "xajax.debug");
$xajax->printJavascript("../", $xajax_files);
?>

        <script type = "text/javascript">
            function setupCallback()
                {
                xajax.callback.global.onRequest = function()
                    {
                    alert('In global.onRequest');
                    };
                xajax.callback.global.onFailure = function(args)
                    {
                    alert("In global.onFailure...HTTP status code: " + args.request.status);
                    }
                xajax.callback.global.onComplete = function()
                    {
开发者ID:silvia-valdez,项目名称:SignalsViewer,代码行数:31,代码来源:callTechniquesTest.php


注:本文中的xajax::printJavascript方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。