Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2009, 03:17
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 16 años, 1 mes
Puntos: 574
Respuesta: Error de compatibiliadad o programación?

Código HTML:
<!--esto es del iframe//-->
<form action="" method="post" name="file" id="file" > 
<div align="center"> 
<select name="file" id="file" size="1">
      <option value="default" selected>A</option>
      <option value="01">B</option>
</select> 

<input type="button" name="Button" value="Filtrar" 
onClick="loadTutorialFile(document.getElementById('file')[document.getElementById('file').selectedIndex].value)"> 
</div> 
</form> 
 <p align="center"> 
<iframe src="dash2008.php" id="tutorialfile" width="1045px" height="600px" align="center" scrolling="yes"></iframe>    

<!--la función en javascript que carga la página en el iframe //-->
<script>
function loadTutorialFile(month) { 
var Ifrm = document.getElementById ? document.getElementById('tutorialfile') : 
document.all ? document.all('tutorialfile') : null;
if (Ifrm) Ifrm.src = (document.getElementById('file')[document.getElementById('file').selectedIndex].value == 'default') ? 'dash2008.php' :  'dash2009'; 
}
</script> 

¿?

Quim

Última edición por quimfv; 20/01/2009 a las 03:24