Zahnspangenterminator: Script verurscht Fehler - aber ich finde ihn nicht

<html><head>
<script language="JavaScript">
<!--
function is_msie()
{
  if(navigator.appName == Microsoft Internet Explorer){
    return true;
  } else {
    return false;
  }
}
function Framing() {
if (this.document == top.document || top.location.host != this.location.host) {
var pathprefix = location.protocol + '//'

  • location.host
  • location.pathname.substring(0,
    location.pathname.lastIndexOf('/')+1);
    var doctitle = document.title;
    document.clear();
    document.open("text/html");
    document.writeln('<html>\n<head><title>' +doctitle+ '</title></head>');
    document.writeln('<frameset  rows="65,*" border="0"><frame src="oben.php" scrolling="no"><frameset  cols="140,*,130" border="0"><frame src="'+pathprefix+'navi.html"><frame src="'+top.location.href+'" name="Anzeige"><frame src="'+pathprefix+'rechts.php" name="rechts"></frameset></frameset><noframes>Ihr Browser unterstützt keine Frames!</noframes></head><body></body></html>');
    document.close();
    return true;
    }
    return false;
    }
    function msieFraming() {
    if (is_msie()) {
    if (Framing()) {
    window.setTimeout('top.frames["Anzeige"].location.href = '+'"'+top.location.href+'";',10);
    }}}
    function netscFraming() {
    if (!is_msie()) Framing();
    }
    msieFraming();

function glossar(wort)
{
window.open('glossar.php?wort='+ wort +'','OK','height=150,width=300,dependent=no,location=no,menubar=no,resizable=no,status=no,toolbar=no');
}
//-->
</script><link rel="stylesheet" href="css.css" type="text/css">
</head>
<body onLoad="netscFraming()">

Das ist das Script und bei der Zeile

if (this.document == top.document || top.location.host != this.location.host)

kommt der Fehler "Zugriff wurde verweigert". Warum? Und ich denke, dass es an diesem navigator.appName liegt. Bitte helft mir, ich bin kurz vorm Verzweifeln! Live zu sehen unter der angegebenen URL

  1. hi

    function is_msie()
    {
      if(navigator.appName == Microsoft Internet Explorer){
        return true;
      } else {
        return false;
      }
    }

    if(navigator.appName == "Microsoft Internet Explorer")

    gruss Kai

    1. Hi Zahnspangenterminator, hi Kai

      Zahnspangenterminator man bei den Preisen die Zahnspangen kosten solltest du pfleglich damit umgehen.

      Ansonsten zum Thema:

      Kai, seufz, die Korrektur ist zwar richtig, trifft aber nicht das Problem. Ich wünschte mir, dass du weniger oberflächlich antworten würdest.

      Ansonsten Zahnspangenterminator, dein Problem ist unlösbar:

      hier liegt dein Frameset: http://www.wc24.de.vu/

      und hier: http://nw-server.de/ deine scriptausführende Datei.

      Zwei verschiedene Server ==> Sicherheitkonzept greift (JavaScript erlaubt keine domainübergreifenden Zugriffe) ==> Zugriff verweigert und Scriptabbruch.

      Einzige Alternative: du besorgst dir eine ordentliche Domain oder du verzichtest auf das Script.

      Viele Grüße

      Antje