Foros del Web » Programando para Internet » Javascript »

Hacer upload a un PDF y actualizar Iframe al mismo tiempo !!!!

Estas en el tema de Hacer upload a un PDF y actualizar Iframe al mismo tiempo !!!! en el foro de Javascript en Foros del Web. No se en que este fallando,... ayuda!!! Código HTML: <script type= "text/javascript" > function Lifra(ifr) { var iframe = document.getElementById("miIframe"); ajax=objetoAjax(); iframe.src ==ajax.open(ifr,"save_.php",true); iframe.contentWindow.location.reload(true); } ...
  #1 (permalink)  
Antiguo 19/11/2015, 19:55
Avatar de fmb1982  
Fecha de Ingreso: junio-2007
Mensajes: 128
Antigüedad: 16 años, 10 meses
Puntos: 0
Pregunta Hacer upload a un PDF y actualizar Iframe al mismo tiempo !!!!

No se en que este fallando,... ayuda!!!

Código HTML:
<script type="text/javascript">
function Lifra(ifr)
{
var iframe = document.getElementById("miIframe");
ajax=objetoAjax();
iframe.src ==ajax.open(ifr,"save_.php",true);
iframe.contentWindow.location.reload(true);
}
</script>
  
<style>
.b1{
padding: 4px;
 }
.b2{
padding: 4px 100px;
 }
#izq{
	width:187px; 
    height:650px; 
    float:left; 
	position: absolute;
    top: 20px; 
    left: 50px;	
}
#der{
	width:187px; 
    height:650px; 
    float:rigth;
 	position: absolute;
    top: 20px; 
    left: 700px;	
}
</style>
  
  <html>
  <head>
  <meta charset="utf-8">
  <title>Captura de PDF File</title>
  </head>
  <body>
  <div id="izq">
  <form enctype="multipart/form-data" name="form1" action="save_.php" method="POST">
		<p align="left"><strong>BUSCAR PDF</strong></p>
        <p align="left"><input name="uploadedfile" type="file" size="80" maxlength="50" class="b1" onChange="lifra(this.value)"/></p>
  </form>
  </div>
  <div id="der">   
  <iframe id="miIframe" name="miIframe" src="" width="640" height="750"></iframe>        
  </div>
   </body>
  </html>
</div> 
__________________
Fidel Medina Bravo
TodocabeN150charsabiendoloacomodar...
http://about.me/fidelMB

Etiquetas: iframe, upload
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:18.