Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/03/2006, 10:41
chefnelone
 
Fecha de Ingreso: diciembre-2005
Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 18 años, 4 meses
Puntos: 15
Funcion no funciona si llamo desde otra funcion

Hola a todos
Tengo esta funcion que funciona perfectamente cuando la llamo desde un boton....Pero cuando la llamo desde otra funcion estas lineas no me funcionan (document.getElementById("linea5estimate").innerHT ML =...)

Pero solo me sucede con Safari (con firefox la veo perfecta)
Alguien tiene alguna idea

///////////////////code///////

function MostrarTotal()
{
//bathroom and toilets//
alert(option2 + " bathrooms and " + option4 + " Toilets")
document.getElementById("linea1estimate").innerHTM L = option2 + " bathrooms and " + option4 + " Toilets";
//windows//
document.getElementById("linea2estimate").innerHTM L = NumtotalWindows + " windows which " + FillWindows;
//doors//
document.getElementById("linea3estimate").innerHTM L = NumtotalDoors + " doors which " + FillDoors;
//ceilings//
document.getElementById("linea4estimate").innerHTM L = PaintCeiling + FillCeiling;
//wall//
document.getElementById("linea5estimate").innerHTM L = FillWalls;
//color//
document.getElementById("linea6estimate").innerHTM L = Colors;
//skirting//
document.getElementById("linea7estimate").innerHTM L = Skirtings;
//APARECE ESTIMATE////
document.getElementById('HereEstimateTable').style .display ='block';
}

function OcultarTablaHereEstimateOff(){
document.getElementById('HereEstimateTable').style .display ='none';
}
///////

luego uso esos valores en lineas como:

//////code///////
<td colspan="2"><span class="repuestas">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="checkbox522" type="checkbox" value="checkbox" checked>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span id="linea2estimate"></span></span></td>
saludos
.