Ver Mensaje Individual
  #17 (permalink)  
Antiguo 23/11/2008, 13:15
vmac179
 
Fecha de Ingreso: julio-2007
Ubicación: /home/victor
Mensajes: 114
Antigüedad: 19 años, 1 mes
Puntos: 0
Respuesta: Validar tabla dinamica

Solucion a problema en IE

Código PHP:
function coordenadas() {

    var 
cuantas = document.getElementById('info').rows.length; // cuento las filas
    
var total = cuantas-1; // le resto la fila de los titulos

        
if (total == 1) {
            var 
lat = document.getElementById('latitud'); // document.getElementById devuelve solamente un elemento                    
            
alert (lat.value);
        }  
        
        else if (
total != 1) {
            var 
latitud = document.form["latitud"];
            for (
i=0; lat=latitud[i]; i++) {
            
alert(lat.value);
            }
        }  


}