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


PHP jquery_ajax_event函数代码示例

本文整理汇总了PHP中jquery_ajax_event函数的典型用法代码示例。如果您正苦于以下问题:PHP jquery_ajax_event函数的具体用法?PHP jquery_ajax_event怎么用?PHP jquery_ajax_event使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: jquery_autocomplete_support_to

?>
		</td>		
		<td>
                    OPERATIVO: 
		</td>
		<td>
	   	<?php 
echo $operativo['operativo_id']->render();
?>
		</td>
		<td>
                    <input type="submit" value="Buscar" id ="btnBuscar" />
                </td>
            </tr>
        </table>
        <?php 
echo jquery_autocomplete_support_to('#dat_sie_operativos_ue', array('url' => url_for('adultoshumanisticainformacion/autocompleteData'), 'max' => 20, 'width' => 300, 'highlight' => false, 'formatItem' => like_function('return row[0] + " - <strong> " + row[1] + "</strong>"', 'row'), 'formatResult' => like_function('return row[0].replace(/(<.+?>)/gi, "")', 'row')));
?>
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($ue), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#dat_sie_operativos_ue").attr("value") != ""', 'onFailureCondition' => 'alert("Debe registrar el SIE de la unidad educativa")', 'type' => 'POST'));
echo jquery_ajax_event('#dat_sie_operativos_ue', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#dat_sie_operativos_ue', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>

开发者ID:remberto,项目名称:Alternativa,代码行数:29,代码来源:_buscarue.php

示例2: foreach

        <option value="0">NINGUNO</option>
    </select>
<?php 
} else {
    ?>
    <select name="dat_rde_estudiante[departamento_nac_id]" id="dat_rde_estudiante_departamento_nac_id" style="font-family: Arial;font-size: 12px;">
        <option value="-999">[Seleccionar]</option>
        <?php 
    foreach ($departamentos as $departamento) {
        ?>
        <option value="<?php 
        echo $departamento->getIdDepartamento();
        ?>
"><?php 
        echo $departamento->getDescDepartamento();
        ?>
</option>
        <?php 
    }
    ?>
    </select>
    <?php 
    echo jquery_ajax(array('listener' => array('selector' => '#dat_rde_estudiante_departamento_nac_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticaextemporaneosinrude/provincia'), 'success' => like_function("\$('#provincia').html(data)", 'data'), 'data' => "'departamento_id=' + " . jquery_get('this', 'val'), 'type' => 'POST'));
    ?>

            <?php 
    echo jquery_ajax_event('#dat_rde_estudiante_departamento_nac_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
    ?>
            <?php 
    echo jquery_ajax_event('#dat_rde_estudiante_departamento_nac_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
}
开发者ID:remberto,项目名称:Alternativa,代码行数:31,代码来源:departamentoSuccess.php

示例3: foreach

<select style="font-family: Arial;font-size: 12px;" id="unidad_educativa">
    <option value="-999">[Seleccionar]</option>
    <?php 
foreach ($unidades as $unidad) {
    ?>
    <option value="<?php 
    echo $unidad->getCodUe();
    ?>
"><?php 
    echo $unidad->getCodUe() . ' - ' . $unidad->getDescUe();
    ?>
</option>
    <?php 
}
?>
</select>
<?php 
echo jquery_ajax(array('listener' => array('selector' => '#unidad_educativa', 'event' => 'change'), 'url' => url_for('adultoshumanisticacrear/subcentro'), 'success' => like_function("\$('#subcentro').html(data)", 'data'), 'data' => "'ue_id=' + " . jquery_get('this', 'val') . "+'&periodo_id='+document.getElementById('periodo_id').value", 'type' => 'POST'));
?>

<?php 
echo jquery_ajax_event('#unidad_educativa', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#unidad_educativa', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
开发者ID:remberto,项目名称:Alternativa,代码行数:23,代码来源:_combounidadeducativa.php

示例4: use_helper

<?php

use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="grado_id" style="font-family: Arial;font-size: 12px;width: 200px;" name="dat_rde_estudiante[grado_id]">
    <option value="-999">[Seleccionar]</option>
    <?php 
foreach ($grados as $grado) {
    ?>
        <option value="<?php 
    echo $grado->getGradoId();
    ?>
"><?php 
    echo $grado->getGradoId() . ' - ' . Doctrine::getTable('ClaGrado')->find(array($nivel, $ciclo, $grado->getGradoId()))->getDescGrado();
    ?>
</option>
    <?php 
}
?>
</select>
<?php 
echo jquery_ajax(array('listener' => array('selector' => '#grado_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticainscripcionanterior/paralelo'), 'success' => like_function("\$('#paralelo').html(data)", 'data'), 'data' => "'grado_id='+" . jquery_get('this', 'val') . "+'&ue_id='+document.getElementById('unidad_educativa').value+'&nivel_id='+document.getElementById('nivel_id').value+'&periodo_id='+document.getElementById('periodo_id').value+'&subcea_id='+document.getElementById('subcea_id').value+'&modalidad_id='+document.getElementById('modalidad_id').value+'&gestion_id='+document.getElementById('gestion_id').value", 'type' => 'POST'));
?>

<?php 
echo jquery_ajax_event('#grado_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#grado_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
开发者ID:remberto,项目名称:Alternativa,代码行数:28,代码来源:cicloSuccess.php

示例5: jquery_load

        echo $page;
        ?>
</a>
      <?php 
        echo jquery_load('#result', array('listener' => array('selector' => '#page' . $page, 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $page, 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
        ?>
    <?php 
    }
    ?>
  <?php 
}
?>
  <a href="#" id="next">
    <img src="/images/next.png" alt="Siguiente P&aacute;gina" title="Siguiente P&aacute;gina"  border="0" />
  </a>
  <a href="#" id="last">
    <img src="/images/last.png" alt="Ultima p&aacute;gina" title="Ultima P&aacute;gina"  border="0"/>
  </a>
</div>
<?php 
echo jquery_load('#result', array('listener' => array('selector' => '#first', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => '1', 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
echo jquery_load('#result', array('listener' => array('selector' => '#previous', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $pager->getPreviousPage(), 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
echo jquery_load('#result', array('listener' => array('selector' => '#next', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $pager->getNextPage(), 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
echo jquery_load('#result', array('listener' => array('selector' => '#last', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $pager->getLastPage(), 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
?>

<?php 
echo jquery_ajax_event('#result', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#result', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
echo jquery_ajax_event('#result', 'ajaxError', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
开发者ID:remberto,项目名称:Alternativa,代码行数:30,代码来源:_pagination.php

示例6: use_helper

<?php

use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="nivel_id" style="font-family: Arial;font-size: 12px;width: 280px;">
    <option value="-999">[Seleccionar]</option>
    <?php 
foreach ($niveles as $nivel) {
    ?>
        <option value="<?php 
    echo $nivel->getIdCiclo();
    ?>
"><?php 
    echo $nivel->getIdCiclo() . ' - ' . $nivel->getDescCiclo();
    ?>
</option>
    <?php 
}
?>
</select>
<?php 
echo jquery_ajax(array('listener' => array('selector' => '#nivel_id', 'event' => 'change'), 'url' => url_for('cea_crear_cursos/ciclo'), 'success' => like_function("\$('#ciclo').html(data)", 'data'), 'data' => "'nivel_id='+" . jquery_get('this', 'val'), 'type' => 'POST'));
?>

<?php 
echo jquery_ajax_event('#cea_crear_cursos', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#cea_crear_cursos', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
开发者ID:remberto,项目名称:Alternativa,代码行数:28,代码来源:_comboniveles.php

示例7: ui_end_content

        <table align="center">
            <tr>
                <td>Paterno:</td>
                <td>
                    <input type="text" id="datos_estudiante_paterno" name="datos_estudiante[paterno]" size="16" maxlength="35" style="text-transform: uppercase;" />
                </td>
                <td>Materno:</td>
                <td>
                    <input type="text" id="datos_estudiante_materno" name="datos_estudiante[materno]" size="16" maxlength="35" style="text-transform: uppercase;" />
                </td>
                <td>Nombre:</td>
                <td>
                    <input type="text" id="datos_estudiante_nombre" name="datos_estudiante[nombre]" size="24" maxlength="35" style="text-transform: uppercase;" />
                </td>
                <td>
                    <input type="submit" value="Buscar" id ="btnBuscar" />
                </td>
            </tr>
        </table>
        
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($url), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#datos_estudiante_paterno").attr("value") != "" || $("#datos_estudiante_materno").attr("value") != "" || $("#datos_estudiante_nombre").attr("value") != ""', 'onFailureCondition' => 'alert("Debe ingresar al menos un criterio.")', 'type' => 'POST'));
echo jquery_ajax_event('#datos_estudiante_nombre', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#datos_estudiante_nombre', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
开发者ID:remberto,项目名称:Alternativa,代码行数:30,代码来源:_buscaestudiante.php

示例8: jquery_autocomplete_support_to

}


</script>

<div id="content">
		<p>
    <label>Test 1 (Local Data [Months]):</label>
    <input type="text" id="suggest1" />

    <?php 
echo jquery_autocomplete_support_to('#suggest1', array('data' => 'months'));
?>

    <?php 
jquery_ajax_event('#suggest15', 'success', like_function("alert('a')"));
?>

    <input type="button" value="Change data" id="btnSetOptions" />
    <?php 
echo jquery_execute(jquery_toggle_event('#btnSetOptions', array(like_function('changeToCities()'), like_function('changeToMonths()'))));
?>
    <br>
    <br>
    Test 2 (Local Data [Months] Multiple):
    <input type="text" id="suggest2" />

    <?php 
echo jquery_autocomplete_support_to('#suggest2', array('multiple' => true, 'highlight' => false, 'data' => 'months'));
?>
    <br>
开发者ID:alexhandzhiev,项目名称:sifact,代码行数:31,代码来源:autocompleteSuccess.php

示例9: use_helper

<?php

use_helper('ysJQueryRevolutions');
?>
Frameworks: <strong><span id="divResults"></span></strong>
<hr>
<h3>Ajax events - example</h3>
<br>
<input type="button" id="btnReloadAjax" value="Click here"/>

<?php 
echo jquery_ajax(array('listener' => array('selector' => '#btnReloadAjax', 'event' => 'click'), 'url' => url_for('jquery_demo/getjson'), 'dataType' => 'json', 'confirmation' => 'Do you want ajax submit', 'onNoConfirmation' => 'alert("Not submitted")', 'success' => like_function("\$('#divResults').html(data.frameworks.toString())", 'data'), 'data' => "'cboIdLenguage=' + Math.ceil(Math.random() * 3)", 'type' => 'GET'));
?>

<?php 
echo jquery_ajax_event('#btnReloadAjax', 'ajaxComplete', like_function("alert('Complete')"));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxSend', like_function("alert('Send')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxStop', like_function("alert('Stop')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxSuccess', like_function("alert('Success')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxStart', like_function("alert('Start')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxError', like_function("alert('Error')", 'event,request,settings'));
?>





开发者ID:alexhandzhiev,项目名称:sifact,代码行数:22,代码来源:ajaxEventsSuccess.php


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