Zum Inhalt springen

Laufzeitfehler...

Erstellt am 11. November 2004 · 1 Antwort · letzte Antwort am 11. November 2004

Tags: Frage

chtypo ·

Wenn ich im Backend auf "Dokument sichern und anzeigen" drücke, erscheint die Meldung:
---
Es ist ein Laufzeitfehler aufgetreten Soll der Debugmodus gestartet werden?
Zeile 45
Fehler:"previewWin" ist Null oder kein Objekt
----
Im Debugger ist dann folgender Code enthalten:

---
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>

<html>
<head>
<!-- TYPO3 Script ID: typo3/alt_doc.php -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="GENERATOR" content="TYPO3 3.6.2, http://typo3.com, &#169; Kasper Sk&#229;rh&#248;j 1998-2004, extensions are copyright of their respective owners." />
<title>TYPO3 Edit Document</title>

<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script type="text/javascript">
/*<![CDATA[*/
function jumpToUrl(URL,formEl) { //
if (!TBE_EDITOR_isFormChanged()) {
document.location = URL;
} else if (formEl && formEl.type=="checkbox") {
formEl.checked = formEl.checked ? 0 : 1;
}
}

// Object: TS:
function typoSetup () { //
this.uniqueID = "";
}
var TS = new typoSetup();

// Info view:
function launchView(table,uid,bP) { //
var backPath= bP ? bP : "";
var thePreviewWindow="";
thePreviewWindow = window.open(backPath+"show_item.php?table="+escape(table)+"&uid="+escape(uid),"ShowItem"+TS.uniqueID,"height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
if (thePreviewWindow && thePreviewWindow.focus) {
thePreviewWindow.focus();
}
}
function deleteRecord(table,id,url) { //
if (confirm(String.fromCharCode(83,105,110,100,32,83,105,101,32,115,105,99,104,101,114,44,32,100,97,115,115,32,83,105,101,32,100,105,101,115,101,110,32,68,97,116,101,110,115,97,116,122,32,108,246,115,99,104,101,110,32,119,111,108,108,101,110,63))) {
document.location = "tce_db.php?cmd["+table+"]["+id+"][delete]=1&redirect="+escape(url)+"&vC=a14893f9b5&prErr=1&uPT=1";
}
return false;
}
previewWin=window.open('../index.php?id=1','newTypo3FrontendWindow','status=1,menubar=1,resizable=1,location=1,scrollbars=1,toolbar=1');previewWin.focus();
/*]]>*/
---

Ich bin schlicht überfordert die Ursache rauszukriegen. Kann mir da jemand helfen?

Wenn ich die Seite im Explorer anschaue, dann sind da keine Probleme (www.dominoservite.ch)!

Ich arbeite das Tutorial "Modern Template Building, Part1" durch

maxhb ·

Hi!
Scheinbar wird dort versucht ein neues Fenster zu öffnen, was aus irgend einem Grund fehlschlägt und somit einen Javascript Fehler erzeugt. Hast Du evtl. einen Pop-Up-Blocker oder etwas anderes aktiviert, dass das öffnen neuer Fenster unterbindet? Falls ja, dann stell das mal ab und teste nochmal.

CU
maxhb