|    
			
				01/09/2008, 00:11
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: agosto-2008 
						Mensajes: 8
					 Antigüedad: 17 años, 2 meses Puntos: 0 |  | 
  |  Respuesta: Problema con innerHTML en IE  
  Por desgracia no puedo subir nada... De todas formas, os pongo los dos códigos, ya que no es mucho...
 [CODIGO HTML]
 <table border="0" cellpadding="0" cellspacing="0" width="100%">
 <tbody><tr>
 <td class="fondo_precios_2_f01" valign="top"><table class="texto_precios_cajas" border="0" cellpadding="3" cellspacing="1" width="100%">
 <tbody><tr>
 <td class="fondo_precios_f01" align="center">{$_precio}:</td>
 <td class="fondo_precios_f01" align="center">{$_referencia}:</td>
 </tr>
 <tr>
 <td class="fondo_precios_f01" align="center">{$producto->getPrecio()} €</td>
 <td class="fondo_precios_f01" align="center"><div id="referencia"> </div></td>
 </tr>
 </tbody></table>
 
 
 
 [CODIGO JAVASCRIPT]
 function actualizarPrecio() {
 var oXmlHttp = getHttpRequest();
 oXmlHttp.open("get", "controller.php?action=actualizarPrecios&referenci  a="+document.getElementById('variedades').value, true);
 
 oXmlHttp.onreadystatechange = function() {
 if (oXmlHttp.readyState == 4) {
 if (oXmlHttp.status == 200) {
 var result = oXmlHttp.responseText.split("#");
 /*
 0: referencia
 1: disponibilidad
 */
 var ref = result[0];
 var disp = result[1];
 
 document.getElementById('precioTotal').innerHTML = document.getElementById('unidades').value * document.getElementById('precio').value;
 alert(document.getElementById('referencia').innerH  TML);
 document.getElementById('referencia').innerHTML = ref;
 document.getElementById('referenciaInput').value = ref;
 document.getElementById('disponibilidad').innerHTM  L = disp;
 } else {
 alert('Ha ocurrido un error al intentar recuperar los datos. Código de error HTTP: ' + oXmlHttp.status);
 }
 }
 };
 oXmlHttp.send(null);
 }
 
 Saludos
     |