Toon posts:

Javascript + FireFox (window.opener.id)

Pagina: 1
Acties:
  • 25 views sinds 30-01-2008

Verwijderd

Topicstarter
code:
1
2
3
4
5
6
7
8
9
<script language="JavaScript">
<!--
 window.opener.document.aanmelden.fotofile.value="717362c2683d4fd27429802c7f0310e0.jpg";
 window.opener.submit2.style.visibility="visible";
 window.opener.foto.style.visibility="hidden";
 window.opener.submit.style.visibility="visible";
 window.close();
 //-->
</script>


Dit is een script wat ik in een pop-up gebruik
- window.opener.submit2 verwijst naar een ID genaamt submit2.. enz
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<TR ID="foto" style="visibility:visible">
  <TD>
      <? echo("".$text_taal["foto"].""); ?>
  </TD>
<TD class="200xp_td_l2r" onClick="window.open('processen/foto_verwerken.php?taal=<?PHP echo("$taal&foto=$foto"); ?>', 'Foto', 'width=500,  height=200, directories=no, location=no, menubar=no, resizable=no, toolbar=no, status=no, scrollbars=no');">
     <? echo("".$text_taal["foto_toevoegen"].""); ?>
  </TD>
 </TR>

<TR id="submit" style="visibility:hidden">
  <TD>
    <? echo("".$text_taal["foto"].""); ?>
  </TD>
  <TD>
    <INPUT type="hidden" value="<? echo("$code"); ?>" name="aanmelden">
    <INPUT type="text" value="" name="fotofile" class="aanmelden_input" READONLY>
   </TD>
 </TR>

 <TR id="submit2" style="visibility:hidden">
  <TD colspan="2">
    <? echo("<INPUT type=\"image\" src=\"images/$taal/aanmelden_submit.gif\">"); ?>
   </TD>
 </TR>


Onder Internet explorer werkt het goed maar onder firefox niet dan geeft hij aan
Fout: window.opener.submit2 has no properties
Bronbestand: http://victor-perez/test/new2/processen/foto_verwerken.php?taal=nederlands&foto=ea81c57bff1b08fc69253a64478595724dcc098a2d734e667caaca97dbf9571c&vraag=j&id=717362c2683d4fd27429802c7f0310e0.jpg
Regel: 4
Weet iemand een oplossing?

Al vast bedankt Vickje

[ Voor 22% gewijzigd door curry684 op 11-04-2005 03:03 . Reden: code- en quote-tags ]


Verwijderd

JavaScript:
1
window.opener.document.getElementById('submit2');

  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 10:20

Pelle

🚴‍♂️

Verwijderd schreef op maandag 11 april 2005 @ 06:45:
JavaScript:
1
window.opener.document.getElementById('submit2');
Wat Blues zegt :)

Dit topic is gesloten.