예제 #1
0
function app_event_test_ajax1($page, $values)
{
    global $config;
    error_log("@app_event_test_ajax1 ==================");
    error_log(print_r($values, true));
    $a = array(array("caption" => "Test1", "value" => 90), array("caption" => "Test2", "value" => 91), array("caption" => "Test3", "value" => 92));
    ajax::sendJSON($a);
}
예제 #2
0
파일: test_ui.php 프로젝트: ctkjose/reasgex
function app_event_coteja_nombre($page, $values)
{
    error_log("here1");
    ///codigo super complejo....
    if ($values['email'] == "*****@*****.**") {
        $respuesta = array();
        $respuesta['resultado'] = true;
        $respuesta['nombre'] = "Joe";
        $respuesta['apellidos'] = "Cuevas";
    } else {
        $respuesta = array();
        $respuesta['resultado'] = false;
        $respuesta['error'] = "No lo encontre";
    }
    error_log("me enviaron :" . $_SERVER['REMOTE_ADDR'] . ':' . print_r($values, true));
    ajax::sendJSON($respuesta);
}
예제 #3
0
 function send()
 {
     ajax::sendJSON($this);
 }
예제 #4
0
 function send()
 {
     ajax::sendJSON($this->data);
 }