Jump to content


Photo

Reload De Iframe Que Nao Funciona...


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 anabattista

anabattista

    Novato no fórum

  • Usuários
  • 10 posts
  • Sexo:Não informado

Posted 14/11/2005, 10:12

:( Ola... mas tou a desesperar com isto.. O objectivo e depois de selecionar umas checkboxs ao submeter aparecer na pagina principal numa iframe que chama o checkk.php as palavras selecionadas. O conteudo de de checkk.php e actualizado mas a iframe nao e..
a janela e javascript....

obrigado desde ja!!!


-----------princ.php----------------------
<html>
<input type=button value="+"  onClick="show_key('<?php echo $DD; ?>', my2frame.loc2);
   return false"  onMouseOver="window.status='List of Keywords';  return true">
 <iframe src="checkk.php" frameborder="1" width="600px" align="left" name="my3f" id="my3f" height="130px" scrolling="yes"></iframe>
</html>

<script language="JavaScript">
<!--
 function show_key( kSec, kList) {

  keyWin = window.open( "", "photo", "width=600,height=450,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");
  keyWin.document.write('<html><head><title>List of Keywords</title></head>');
  keyWin.document.write('<body bgcolor=#CECCFF text=black link=orange vlink=red>');
  keyWin.document.write('<center>');
  keyWin.document.write('<form method="POST" action="checkk.php">');
	................
  for (i = 0;i < Math.round(num1/3);i++)
  {
  keyWin.document.write('<STRONG><font face="Courier" size="-1">- '+kList[i][0]+'</font><STRONG><INPUT type="checkbox" name="checkk[]" value="'+kList[i][0]+
'"><br>');
  }
	................
  keyWin.document.write('<input type="submit" align="center" value="associate with the document" onclick="window.parent.my3f.location.reload();">');
/*Ja experimentei ainda
  document.getElementById('my3f').reload();
*/

keyWin.document.write('</form>');
  keyWin.document.write('<p></font></body></html>');
  keyWin.document.close();

}
//-->
</script>
------------------checkk.php------------------
<html>
<head></head>
<body>
Keywords:   //isto aparece sempre, o resto so aparece se abrir checkk.php na propria janela popup
<?php
if(isset($_POST["checkk"]))
{
 $options = $_POST['checkk'];
 $options_text = implode(', ',$options);
 echo 'Opções escolhidas: '.$options_text;
}
?>
</body>
</html>





1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq