Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
tester schrieb:wäre vllt. besser wenn den Code postest?!?
<iframe name="editbox" id="editbox" width="500" height="200" src="seite.php" marginheight="0" marginwidth="0">Ihr Browser unterstützt leider keine IFrames.</iframe>
<html>
<body bgcolor="white">
</body>
</html>
Wenn du fürs "schreiben" JavaScript verwendest, jaPatrickB schrieb:ist es normal, dass man nicht in IFrames schreiben kann wenn Javascript deaktiviert ist?
theHacker schrieb:Wenn du fürs "schreiben" JavaScript verwendest, ja![]()
Wenn du endlich den Code postest, müsste keiner mehr groß nach seiner Kristallkugel suchenPatrickB schrieb:Ich hab das so in meinem Code stehen und wenn man da drauf klickt kann man reinschreiben und direkt den Text fett machen oder unterstrichen....
theHacker schrieb:Wenn du endlich den Code postest, müsste keiner mehr groß nach seiner Kristallkugel suchen![]()
<script language="Javascript">
function checkform()
{
if(window.document.form1.threadname.value.length < 4)
{
alert("Der Titel muss mehr als 3 Zeichen lang sein!");
return false;
}
if((document.getElementById("editbox").contentWindow.document.body.innerHTML.replace(/<\/?[^>]+>|\s/gi, "").length) < 4)
{
alert("Die Nachricht muss mehr als 3 Zeichen lang sein!");
return false;
}
}
function sendEditbox()
{
document.getElementById("editboxHidden").value = document.getElementById("editbox").contentWindow.document.body.innerHTML;
}
function includeimage()
{
var url = prompt("Adresse des Bildes eingeben", "https://");
if( (url != "") && (url != "https://") && (url != null) )
{
document.getElementById('editbox').contentWindow.document.execCommand('InsertImage', false, url);
}
}
function includelink()
{
var urllink = prompt("Adresse des Linkes eingeben", "https://");
var textlink = prompt("Text eingeben der mit dem Link verlinkt wird","");
if( (urllink != "") && (urllink != "https://") && (urllink != null) && (textlink != "") )
{
var link = document.createTextNode("<a href=\"" + urllink + "\" target=\"_blank\">" + textlink + "</a>");
document.getElementById('editbox').contentWindow.document.body.appendChild(link);
}
}
</script>
<!--###### JavaScript ######-->
<table border="0" bgcolor="#F3D163">
<tr>
<td width="30"></td>
<td>
<form name="form1" method="post" action="<?php echo $PHP_SELF; ?>" onsubmit="sendEditbox()">
<table border="0" cellspacing="0" cellpadding="1" bgcolor="#F3D163">
<?php
if($solution == "failed")
{
echo "
<tr>
<td width=\"600\" align=\"left\"><font color=\"#008080\">Die Felder wurden nicht richtig ausgefüllt. Korrigiere deine Eingaben!</td>
</tr>
";
}
?>
<tr>
<td width="600" align="left" value="<?php echo $message_threadname; ?>">Titel:</td>
</tr>
<tr>
<td align="left"><input type="text" name="threadname" size="35" maxlength="65"></td>
</tr>
<tr>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><select onchange="document.getElementById('editbox').contentWindow.document.execCommand('FontName', false, this.value);">
<option>Schriftart</option>
<option value="Arial">Arial</option>
<option value="Arial Black">Arial Black</option>
<option value="Comic Sans MS">Comic Sans MS</option>
<option value="Lucida Console">Lucida Console</option>
<option value="Tahoma">Tahoma</option>
<option value="Verdana">Verdana</option>
</select> </td>
<td><select onchange="document.getElementById('editbox').contentWindow.document.execCommand('FontSize', false, this.value);">
<option>Schriftgröße</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select></td>
<td><a href="#" onclick="document.getElementById('editbox').contentWindow.document.execCommand('Bold', false, '');"><img src="images/icon_bold.gif" border="0"></a></td>
<td><a href="#" onclick="document.getElementById('editbox').contentWindow.document.execCommand('Italic', false, '');"><img src="images/icon_italic.gif" border="0"></a></td>
<td><a href="#" onclick="document.getElementById('editbox').contentWindow.document.execCommand('Underline', false, '');"><img src="images/icon_underline.gif" border="0"></a></td>
<td><a href="#" onclick="javascript:includeimage();"><img src="images/icon_image.gif" border="0"></a></td>
<td><a href="#" onclick="document.getElementById('editbox').contentWindow.document.execCommand('JustifyLeft', false, '');"><img src="images/icon_left.gif" border="0"></a></td>
<td><a href="#" onclick="document.getElementById('editbox').contentWindow.document.execCommand('JustifyCenter', false, '');"><img src="images/icon_center.gif" border="0"></a></td>
<td><a href="#" onclick="document.getElementById('editbox').contentWindow.document.execCommand('JustifyRight', false, '');"><img src="images/icon_right.gif" border="0"></a></td>
<td><button onclick="document.getElementById('editbox').contentWindow.document.execCommand('ForeColor', false, '#880000');">Textfarbe</button></td>
<td><a href="#" onclick="javascript:includelink();">Link</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left">Nachricht:</td>
</tr>
<tr>
<td align="left"><iframe name="editbox" id="editbox" width="500" height="200" src="empty.php" marginheight="0" marginwidth="0">Ihr Browser unterstützt leider keine IFrames.</iframe>
<input id="editboxHidden" type="hidden" name="message">
</td>
</tr>
<tr>
<td align="center">
<input type="hidden" value="check" name="checked">
<input type="submit" onClick="return checkform()" value="Thema erstellen"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
theHacker schrieb:Ich sehe JavaScript. Wenn du es deaktivierst, funktioniert es folglich auch nicht mehr.
Und was is jetzt das Problem ?
PatrickB schrieb:Ja das Javascript is ja nur zum überprüfen.
Man kann mit deaktiviertem Javascript nixmehr in den IFrame schreiben.
tester schrieb:soll auch so sein, sonst würds net deaktiviert heißen![]()
DeathAngel2001 schrieb:Du benutzt JavaScript um in dein IFrame zu schreiben.