Hallo gn#36,
danke für den Hinweis, das war die Lösung:
Code: Alles auswählen
<form name="iframeform">
<input type="checkbox" name="haken" checked onchange="iframe_review.setTimeout(function()
{
iframe_review.location.reload();
}
, 1000);">
<iframe src="weiterempfehlen.php" name='iframe_review' onload="
if(document.forms.iframeform.haken.checked == true)
{
iframe_review.setTimeout(function()
{
iframe_review.location.reload();
}
, 1000);
};">
</iframe>
</form>
Nur leider bekomme ich es im phpBB2 Forum absolut nicht zum Laufen.
Ich habe es in der
posting_topic_review.tpl eingebaut, aber es will in dem Zusammenspiel nicht funktionieren:
Code: Alles auswählen
<!-- BEGIN switch_inline_mode -->
<form name="iframeform">
<table class="table" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="toprowleft"></td>
<td class="toprow">{L_TOPIC_REVIEW}</td>
<td class="toprow" width="100">
<input type="checkbox" name="haken" checked onchange="iframe_review.setTimeout(function() { iframe_review.location.reload(); } , 1000);">
</td>
<td class="toprowright"></td>
</tr>
</table>
<table class="table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="row1top">
<iframe width="100%" height="300" src="{U_REVIEW_TOPIC}" name='iframe_review' onload="if(document.forms.iframeform.haken.checked == true) { iframe_review.setTimeout(function() { iframe_review.location.reload(); } , 1000);};">
<!-- END switch_inline_mode -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- BEGIN postrow -->
<tr>
<td width="150" valign="top" class="row1">
<a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b><br /><br />
<span class="small"><b>{L_POSTED}:</b><br />{postrow.POST_DATE}</span>
</td>
<td class="row2" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="25"><b>{L_POST_SUBJECT}</b>: {postrow.POST_SUBJECT}</td>
</tr>
<tr>
<td>
{postrow.MESSAGE}
{postrow.ATTACHMENTS}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class="spacer"></td>
</tr>
<!-- END postrow -->
</table>
<!-- BEGIN switch_inline_mode -->
</iframe>
</form>
</td>
</tr>
</table>
<table class="table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="footrowleft"></td>
<td class="footrow">.</td>
<td class="footrowright"></td>
</tr>
</table>
<!-- END switch_inline_mode -->
Wenn ich den Haken setzen und entferne, dann aktualisiert er den iFrame, aber nur einmal.
Ich verstehe das absolut nicht
Siehst du vielleicht einen Fehler?
Grüße und ein schönes Wochenende...
Maxe