Ich habe ein Kontaktfornular als Modul eingefügt, nun läst sich aber die Überschrift etc nicht mehr ändern. JS Fehler!
Die Ursache war schnell gefunden, ein nicht gechlossener Body Tag Nur wo muß ich den zu machen? Im Layout ist er Zu!
Muß also irgendwo anders liegen der Fehler.
Die Anzeige läuft auch Problemlos Ohne Fehler.
Hier mal unverschämter Weise der komplette Fehlerhafte Code:
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Kiezportal Berlin Karlshorst</title>
<meta name="author" content="Thomas Giesau">
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
<link rel="stylesheet" href="css/format.css" type="text/css">
<script type="text/javascript">
/* Check if submenuItem is existing
and mark it */
if ( parent.frames["right_top"].document.getElementById("c_3") ) {
menuItem = parent.frames["right_top"].document.getElementById("c_3");
parent.frames["right_top"].sub.click(menuItem);
}
</script>
<script language="javascript">
// searches the classname in the td above or the tr above
function getCellClass(element) {
var el = document.getElementById(element);
var cell = el.offsetParent;
// if there is a classname in the td return the classname
if ( cell.className != '' ) {
return cell.className;
}
// set a flag in this td
if ( cell.id == '' ) {
cell.id = 'yes';
var flg = 'yes'
} else {
var flg = cell.id;
}
//else go to the tagname table above and search dowen for the tr tags
while (el.tagName != 'TABLE') {
el = el.offsetParent;
}
var elements = el.getElementsByTagName('TR');
//go thrue all tr tags
for (var row in elements) {
if (isNaN(elements[row])) {
var cells = elements[row].getElementsByTagName('TD');
for (var id in cells) {
if(isNaN(cells[id])){
// check if the flg(td cell) is in this tr if true return the calssname
if (cells[id].id==flg&&elements[row].className != '') {
return elements[row].className;
}
}
}
}
}
return false;
}
function setcontent(idart, act) {
var a = document.getElementsByTagName("*");
var str = '';
var aId = '';
var dcoElementCnt = 0;
// loop through all elements
for (var i=0; i < a.length; i++) {
aId = a[i].id;
aIdPrefix = aId.substr(0,4);
// search for the id which containes HTML
if (aIdPrefix == 'HTML') {
// check if its an 'contentEditable' Field
if (a[i].isContentEditable == true) {
// read out the content
var aContent = a[i].innerHTML;
// split the idname in data - datas 0 is the Fieldname 2 is the typeid
var data = aId.split("_");
if ( aContent == "" ) {
aContent = "!!";
} else {
// if there is an | in the text set a replacement chr because we use it later as isolator
while( aContent.search(/\|/) != -1 ) {
aContent = aContent.replace(/\|/,"§%%§");
}
}
// build the string which will be send
str += idart +'|'+ data[2] +'|'+ aContent +'|'+ data[0] +'||';
}
}
}
// set the string
document.forms.editcontent.data.value = str;
// set the action string
if ( act != 0 ) {
document.forms.editcontent.action = act;
}
// if there are 3 arguments, the className has to be seached
if(arguments.length > 2){
//search the class of the above element
var classname = getCellClass(arguments[2]);
if ( classname ) {
document.forms.editcontent.con_class.value = classname;
}
}
// submit the form
document.forms.editcontent.submit();
}
</script>
<script src="http://www.karlshorst.de/contenido/external/mozile/mozileLoader.js" type="text/javascript"></script></head>
<body>
<div id="counter">
<a target="_top" href="http://t.extreme-dm.com/?login=web111">
<img src="http://t1.extreme-dm.com/i.gif" height=38
border=0 width=41 alt=""></a><script language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/c.g?tag=web111&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height=1 width=1 alt=""
src="http://t0.extreme-dm.com/c.g?tag=web111&j=n"></noscript>
</div>
<div id=rahmenrechts>
<div id="breitenbegrenzer" >
<table width="100%">
<tr><td class="tdbg" colspan="2"></td></tr>
<tr>
<td> </td>
<td><img src="images/logo.gif" width="506" height="60" border="0" alt=""> </td>
</tr>
<tr><td class="tdbg" colspan="2"></td></tr>
<tr><td align="right" colspan="2"><table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="images/wuerfel.gif"></td><td height="21" class=".navigation" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:7px; padding-right:7px;">
<a class="menue" href="front_content.php?idcat=17">Home</a></td><td height="21" class=".navigation" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:7px; padding-right:7px;">
<a class="menue" href="front_content.php?idcat=4">Impressum</a></td><td height="21" class=".navigation" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:7px; padding-right:7px;">
<a class="menue" href="front_content.php?idcat=5">Kontakt</a></td></tr></table></td></tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td width="405px" valign="top"> <table cellspacing="0" cellpadding="0" border="0"><!-- Generated by Contenido 4.4.1-->
<tr><td width="185" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:10px">
<a class="menue" target="_self" href="front_content.php?idcat=24&contenido=87e217221ef73183e396ed630ef5ad91">Einrichtungen & Vereine</a></td></tr>
<!-- Generated by Contenido 4.4.1-->
<tr><td width="185" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:10px">
<a class="menue" target="_self" href="front_content.php?idcat=28&contenido=87e217221ef73183e396ed630ef5ad91">Kita & Schule</a></td></tr>
<!-- Generated by Contenido 4.4.1-->
<tr><td width="185" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:10px">
<a class="menue" target="_self" href="front_content.php?idcat=25&contenido=87e217221ef73183e396ed630ef5ad91">Kirche</a></td></tr>
<!-- Generated by Contenido 4.4.1-->
<tr><td width="185" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:10px">
<a class="menue" target="_self" href="front_content.php?idcat=37&contenido=87e217221ef73183e396ed630ef5ad91">Personen</a></td></tr>
<!-- Generated by Contenido 4.4.1-->
<tr><td width="185" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: solid; background-color: #FFFFFF; padding-left:10px">
<a class="menue" target="_self" href="front_content.php?idcat=45&contenido=87e217221ef73183e396ed630ef5ad91">Geschichten</a></td></tr>
</table> </td>
<td valign="top"><h2 class="headline" ><div id="HTMLHEAD_1_1" onFocus="this.style.border='1px solid #bb5577'" onBlur="this.style.border='1px dashed #bfbfbf'" style="border:1px dashed #bfbfbf" contentEditable="true">Kontakt</div><a href="javascript:setcontent('19','front_content.php?action=10&idcat=5&idart=19&idartlang=19&type=CMS_HTMLHEAD&typenr=1&contenido=87e217221ef73183e396ed630ef5ad91')">
<img src="http://www.karlshorst.de/contenido/images/but_edithead.gif" border="0"></a>
<a href="javascript:setcontent('19','0')"><img src="http://www.karlshorst.de/contenido/images/but_speichern.gif" border="0"></a></h2><h3 class="subheadline"><div id="HTMLHEAD_1_2" onFocus="this.style.border='1px solid #bb5577'" onBlur="this.style.border='1px dashed #bfbfbf'" style="border:1px dashed #bfbfbf" contentEditable="true"> </div><a href="javascript:setcontent('19','front_content.php?action=10&idcat=5&idart=19&idartlang=19&type=CMS_HTMLHEAD&typenr=2&contenido=87e217221ef73183e396ed630ef5ad91')">
<img src="http://www.karlshorst.de/contenido/images/but_edithead.gif" border="0"></a>
<a href="javascript:setcontent('19','0')"><img src="http://www.karlshorst.de/contenido/images/but_speichern.gif" border="0"></a></h3>
<div class="text">
<form method="get" action="">
<input type=hidden name=in value=1>
<table align="center" width=500 border=0 cellspacing=0 cellpadding=5>
<tr>
<td valign="top" width=150>
<div>*Name:</div>
<input type="text" size="20" name="name" value="">
</td>
<td rowspan="3">Wir bedanken uns für Ihr Interesse an dieser Website. Noch mehr würden wir uns über Ihre Verbesserungsvorschläge, Anregungen, Beiträge, aktive Mitarbeit oder sonstige Unterstützung freuen. Sie können das hier bereitgestellte Formular oder die Angaben des Impressums (Telefon, Postadresse) zur Kontaktaufnahme nutzen:</td>
</tr>
<tr>
<td valign="top" width=150>
<div>E-Mail:</div>
<input type="text" size="20" name="email" value="">
</td>
</tr>
<tr>
<td valign="top" width=150>
<div>Telefon:</div>
<input type="text" size="20" name="telefon" value="">
</td>
</tr>
<tr>
<td valign=top width=200>
<div>*Betreff:</div>
<input type="text" size="20" name="subject" value="">
<input type="hidden" size="20" name="idcat" value="5">
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<br><div>*Frage /Anliegen</div>
<textarea name="message" rows="7" cols="50" wrap="virtual"></textarea><br>
*Diese Felder des Formulars müssen ausgefüllt werden.<br>
Um eine Antwort von uns zu erhalten,<br>
müssen Sie eine gültige und erreichbare E-Mailadresse angeben.
</td>
</tr>
<tr>
<td valign=top colspan=3>
<br>
<input type="Submit" name="Absenden" value="Senden">
</td>
</tr>
</table>
<br>
<br>
</div> </td>
</tr>
</table>
</div>
</div>
<form name="editcontent" method="post" action="front_content.php?area=con_editcontent&idart=19&idcat=5&lang=1&action=20&contenido=87e217221ef73183e396ed630ef5ad91">
<input type="hidden" name="changeview" value="edit">
<input type="hidden" name="data" value="">
<input type="hidden" name="con_class" value="">
</form></body
></html>