Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/11/2008, 12:58
vmac179
 
Fecha de Ingreso: julio-2007
Ubicación: /home/victor
Mensajes: 114
Antigüedad: 16 años, 9 meses
Puntos: 0
Respuesta: Problema con IE

jajaja, el problema es que en firefox me recoge en valor pero en IE nop

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=0lat=latitud[i]; i++) {
            
alert(lat.value);
            }
        }