Änderugen zu speichern bekomme ich folgende JavaScript Fehlermeldung
Code: Alles auswählen
Zeile: 122
Zeichen: 9
Fehler: 'document.forms.editcontent.data' ist Null oder kein Objekt
Code: 0
Code: Alles auswählen
Zeile: 122
Zeichen: 9
Fehler: 'document.forms.editcontent.data' ist Null oder kein Objekt
Code: 0
Code: Alles auswählen
<form name="editcontent" method="post" action="front_content.php?area=con_editcontent&idart=9&idcat=3&lang=1&action=20&contenido=63885c38a6bd41042006774e4755824d">
<input type="hidden" name="changeview" value="edit">
<input type="hidden" name="data" value="">
<input type="hidden" name="con_class" value="">
</form></body>
</html>
Code: Alles auswählen
CMS_CONTAINER[1]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RUBBS - Religionslehrer an den Berufsbildenden Schulen des Bistums Trier</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen, tv, projection"> @import url(css/style.css); </style>
<!--[if lte IE 6]>
<style type="text/css">
body { behavior:url("css/csshover.htc"); }
</style>
<![endif]-->
</head>
<body bgcolor="#666666">
CMS_CONTAINER[5]
<!-- CONTENT -->
<div id="textbox1">
<div class="ueberschriften">CMS_CONTAINER[2]</div>
<span class="text">
<p>CMS_CONTAINER[3]</p>
</span></div>
<div id="textbox2"><br /><br />
<span class="text">
<p>CMS_CONTAINER[4]</p></span></div>
<!-- ENDE CONTENT -->
</body>
</html>
Code: Alles auswählen
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RUBBS - Religionslehrer an den Berufsbildenden Schulen des Bistums Trier</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen, tv, projection"> @import url(css/style.css); </style>
<!--[if lte IE 6]>
<style type="text/css">
body { behavior:url("css/csshover.htc"); }
</style>
<![endif]-->
<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://rubbs.de/cms/contenido/external/mozile/mozileLoader.js" type="text/javascript"></script></head>
<body bgcolor="#666666">
<div id="menu">
<ul id="menuList">
<!-- HOME-->
<li><a href="#" class="submenu">Home</a>
<ul id="HomeMenu">
<li><a href="#">Home</a></li>
</ul>
</li>
<!-- NEWS -->
<li><a href="#" class="submenu">News</a>
<ul id="NewsMenu">
<li><a href="#">News</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Veranstaltungen</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Archiv</a></li>
</ul>
</li>
<!-- TEAM -->
<li><a href="#" class="submenu">Team</a>
<ul id="TeamMenu">
<li><a href="#">Team</a></li>
</ul>
</li>
<!-- THEOLOGIE -->
<li><a class="submenu" href="#">Theologie</a>
<ul id="TheologieMenu">
<li><a href="#">Links</a></li>
</ul>
</li>
<!-- RELIGIONSUNTERRICHT -->
<li><a class="submenu" href="#">Religionsunterricht</a>
<ul id="ReligionsunterrichtMenu">
<li><a href="#">Links</a></li>
<li><a href="#">Aktuelle Diskussionen</a></li>
<li><a href="#">Lehrpläne</a></li>
<li><a href="#">Eigene Kurserstellung</a></li>
</ul>
</li>
<!-- JAHRESTAGUNGEN -->
<li><a class="submenu" href="#">Jahrestagungen</a>
<ul id="JahrestagungenMenu">
<li><a href="#">letzte Tagung</a></li>
<li><a href="#">Archiv</a></li>
</ul>
</li>
<!-- KONTAKT -->
<li><a class="submenu" href="#">Kontakt</a>
<ul id="KontaktMenu">
<li><a href="#">Kontaktformular</a></li>
<li><a href="#">Gästebuch</a></li>
<li><a href="#">Forum</a></li>
</ul>
</li>
<li><img src="images/spacer.gif" alt="Rubbs Logo" /></li>
<!-- SUCHE -->
<li><a href="#">Suche</a></li>
<!-- TEAM LOGIN -->
<li><a href="#">Team-Login</a></li>
<!-- IMPRESSUM -->
<li><a href="#">Impressum</a></li>
<!-- SITEMAP -->
<li><a href="#">Sitemap</a></li>
</ul>
</div>
<!-- ENDE MENUE -->
<!-- LAYOUT -->
<div id="box"></div>
<div id="logo"><img src="images/logo.gif" width="78" height="78" alt="Rubbs Logo" /></div>
<div id="bistum_link"><a href="http://www.bistum-trier.de/" target="_blank">Bistum Trier</a></div>
<div class="slice01_"> <img id="slice01" src="images/slice01.gif" width="925" height="30" alt=""
/></div>
<div class="slice02_"> <img id="slice02" src="images/slice02.jpg" width="925" height="30"
alt="Das Bild für die Navigation wird aufgebaut" /></div>
<div class="slice03_"> <img id="slice03" src="images/slice03.jpg" width="925" height="30"
alt="Das Bild für die Navigation wird aufgebaut" /></div>
<div class="slice04_"> <img id="slice04" src="images/slice04.jpg" width="925" height="30"
alt="Das Bild für die Navigation wird aufgebaut" /></div>
<div class="slice05_"> <img id="slice05" src="images/slice05.jpg" width="925" height="30"
alt="Das Bild für die Navigation wird aufgebaut" /></div>
<div class="slice06_"> <img id="slice06" src="images/slice06.jpg" width="925" height="30"
alt="Das Bild für die Navigation wird aufgebaut" /></div>
<div class="slice07_"> <img id="slice07" src="images/slice07.jpg" width="925" height="30"
alt="Das Bild für die Navigation wird aufgebaut" /></div>
<!-- CONTENT -->
<div id="textbox1">
<div class="ueberschriften"><div id="HTML_2_1" onFocus="this.style.border='1px solid #bb5577'" onBlur="this.style.border='1px dashed #bfbfbf'" style="border:1px dashed #bfbfbf" contentEditable="true" ><P><FONT face="Tahoma, Verdana, Arial, Helvetica, Sans Serif"></FONT> </P></div><a href="javascript:setcontent('4','front_content.php?action=10&idcat=5&idart=4&idartlang=4&type=CMS_HTML&typenr=1&lang=1&contenido=c6890e1a916e2dbea9b8f10ec35194f2')">
<img src="http://rubbs.de/cms/contenido/images/but_edithtml.gif" border="0"></a>
<a href="javascript:setcontent('4','0')"><img src="http://rubbs.de/cms/contenido/images/but_speichern.gif" border="0"> </a></div>
<span class="text">
<p><div id="HTML_2_1" onFocus="this.style.border='1px solid #bb5577'" onBlur="this.style.border='1px dashed #bfbfbf'" style="border:1px dashed #bfbfbf" contentEditable="true" ><P><FONT face="Tahoma, Verdana, Arial, Helvetica, Sans Serif"></FONT> </P></div><a href="javascript:setcontent('4','front_content.php?action=10&idcat=5&idart=4&idartlang=4&type=CMS_HTML&typenr=1&lang=1&contenido=c6890e1a916e2dbea9b8f10ec35194f2')">
<img src="http://rubbs.de/cms/contenido/images/but_edithtml.gif" border="0"></a>
<a href="javascript:setcontent('4','0')"><img src="http://rubbs.de/cms/contenido/images/but_speichern.gif" border="0"> </a></p>
</span></div>
<div id="textbox2"><br /><br />
<span class="text">
<p><div id="HTML_2_1" onFocus="this.style.border='1px solid #bb5577'" onBlur="this.style.border='1px dashed #bfbfbf'" style="border:1px dashed #bfbfbf" contentEditable="true" ><P><FONT face="Tahoma, Verdana, Arial, Helvetica, Sans Serif"></FONT> </P></div><a href="javascript:setcontent('4','front_content.php?action=10&idcat=5&idart=4&idartlang=4&type=CMS_HTML&typenr=1&lang=1&contenido=c6890e1a916e2dbea9b8f10ec35194f2')">
<img src="http://rubbs.de/cms/contenido/images/but_edithtml.gif" border="0"></a>
<a href="javascript:setcontent('4','0')"><img src="http://rubbs.de/cms/contenido/images/but_speichern.gif" border="0"> </a></p></span></div>
<!-- ENDE CONTENT -->
<form name="editcontent" method="post" action="front_content.php?area=con_editcontent&idart=4&idcat=5&lang=1&action=20&contenido=c6890e1a916e2dbea9b8f10ec35194f2">
<input type="hidden" name="changeview" value="edit">
<input type="hidden" name="data" value="">
<input type="hidden" name="con_class" value="">
</form></body>
</html>
Code: Alles auswählen
<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>