Ver Mensaje Individual
  #5 (permalink)  
Antiguo 08/11/2010, 11:17
seyerben
 
Fecha de Ingreso: octubre-2010
Mensajes: 53
Antigüedad: 16 años
Puntos: 0
Respuesta: Ayuda para mostrar consulta usando div

aqui el complemento del mismo archivo
Código PHP:
 sajax_debug(func_name + " uri = " + uri + "/post = " + post_data);
            x.send(post_data);
            sajax_debug(func_name + " waiting..");
            delete x;
            return true;
        }
        
        <?php
        $html 
= ob_get_contents();
        
ob_end_clean();
        return 
$html;
    }
    
    function 
sajax_show_common_js() {
        echo 
sajax_get_common_js();
    }
    
    
// javascript escape a value
    
function sajax_esc($val)
    {
        
$val = str_replace("\\", "\\\\", $val);
        
$val = str_replace("\r", "\\r", $val);
        
$val = str_replace("\n", "\\n", $val);
        
$val = str_replace("'", "\\'", $val);
        return 
str_replace('"', '\\"', $val);
    }

    function 
sajax_get_one_stub($func_name) {
        
ob_start();    
        
?>
        
        // wrapper for <?php echo $func_name; ?>
        
        function x_<?php echo $func_name; ?>() {
            sajax_do_call("<?php echo $func_name; ?>",
                x_<?php echo $func_name; ?>.arguments);
        }
        
        <?php
        $html 
= ob_get_contents();
        
ob_end_clean();
        return 
$html;
    }
    
    function 
sajax_show_one_stub($func_name) {
        echo 
sajax_get_one_stub($func_name);
    }
    
    function 
sajax_export() {
        global 
$sajax_export_list;
        
        
$n = func_num_args();
        for (
$i = 0; $i < $n; $i++) {
            
$sajax_export_list[] = func_get_arg($i);
        }
    }
    
    
$sajax_js_has_been_shown = 0;
    function 
sajax_get_javascript()
    {
        global 
$sajax_js_has_been_shown;
        global 
$sajax_export_list;
        
        
$html = "";
        if (! 
$sajax_js_has_been_shown) {
            
$html .= sajax_get_common_js();
            
$sajax_js_has_been_shown = 1;
        }
        foreach (
$sajax_export_list as $func) {
            
$html .= sajax_get_one_stub($func);
        }
        return 
$html;
    }
    
    function 
sajax_show_javascript()
    {
        echo 
sajax_get_javascript();
    }

    
    
$SAJAX_INCLUDED = 1;
}
?>
ayuda tengo mucho tiempo intentando hacer esto cualquier aporte es bueno; cual es la forma que debo emplear el Sajax

gracias
saludos