Codigo

Fecha: el 16 de Julio
Categoria: General
Descargas: 0
Descripción:
Resumen (Extraido del documento):
function objetoAjax(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}

var contLin = 1;
function ver_orden(){
ajax=objetoAjax();
orden=document.resultado.num_orden.value;
ajax.open("GET", "busc_ord_res.php?orden="+orden);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
var valores = ajax.responseText;
if(valores){
var filas=valores.split("|");

if(document.all.tab_res.rows.length!=1){
var ultima = document.all.tab_res.rows.length;
for(var i=1;i<=ultima-1;i++){
document.all.tab_res.deleteRow(1);
}
aum_filas(filas,valores);
}
else aum_filas(filas,valores);
}
}
}
ajax.send(null);
}

function aum_filas(filas,valores){
var tr, td;
divResultado1 = document.getElementById('hist');
divResultado2 = document.getElementById('nom');
divResultado3 = document.getElementById('aps');
divResultado4 = document.getElementById('sexo');
divResultado5 = document.getElementById('edad');
for(var i=0; i val = filas[i].split("/");

var Row = document.getElementById("tab_res").insertRow(-1);
var Cell = Row.insertCell(0);

Cell.innerHTML = "";
var Cell = Row.insertCell(1);

Cell.innerHTML = "";
var Cell = Row.insertCell(2);

Cell.innerHTML ="
compartir

Sé el primero en opinar


 
Páginas internacionales: España  |  Italia  |  Francia  |  México  |  Alemania  |  Reino Unido  |  Argentina  |  Chile  |  Colombia  |  USA

Búsquedas frecuentes: ejemplos de mezclas homogeneas alergia al frio cuestionarios de clima laboral tripticos en word foros de lectura

Emagister cumple la Ley Orgánica 15/1999 de 13 de diciembre, de Protección de datos de Carácter Personal, y posee el código de inscripción nº 2002010053 del Registro General de la Agencia de Protección de Datos. Copyright © 1999/2000 - Grupo Intercom - Todos los derechos