nicht bekannte fehler meldung

ethciF

Gesperrt
die java script konsole von mozzilla zeigt an ...

Error: uncaught exception: Permission denied to call method Location.toString

was bedeutetdas?
 
Hi,

sicherlich versuchst du auf das location-Objekt in einer anderen Domain mit der Methode toString
zuzugreifen. JavaScript erlaubt aber nur Zugriffe innerhalb der gleichen Domain.

Ciao
Quaese
 
das ist mein source bitte hilf mir:

<html>
<head>
<title> </title>
<meta name="author" content="Mark Paspirgilis" />
<meta name="description" content="Mark Paspirgilis" />
<meta name="publisher" content="Mark Paspirgilis" />
<meta name="copyright" content="&copy; 1007 by Mark Paspirgilis" />
<script language="JavaScript">
function start()
{
setTimeout("title1()","300");
}

function title1()
{
document.title=" |";
setTimeout("title2()","100");
}
function title2()
{
document.title=" M|";
setTimeout("title3()","100");
}
function title3()
{
document.title=" Ma|";
setTimeout("title4()","100");
}
function title4()
{
document.title=" Mar|";
setTimeout("title5()","100");
}
function title5()
{
document.title=" Mark|";
setTimeout("title6()","100");
}
function title6()
{
document.title=" Mark'|";
setTimeout("title7()","100");
}
function title7()
{
document.title=" Mark's|";
setTimeout("title8()","100");
}
function title8()
{
document.title=" Mark's |";
setTimeout("title9()","100");
}
function title9()
{
document.title=" Mark's H|";
setTimeout("title10()","100");
}
function title10()
{
document.title=" Mark's Ho|";
setTimeout("title11()","100");
}
function title11()
{
document.title=" Mark's Hom|";
setTimeout("title12()","100");
}
function title12()
{
document.title=" Mark's Home|";
setTimeout("title13()","100");
}
function title13()
{
document.title=" Mark's Homep|";
setTimeout("title14()","100");
}
function title14()
{
document.title=" Mark's Homepa|";
setTimeout("title15()","100");
}
function title15()
{
document.title=" Mark's Homepag|";
setTimeout("title16()","100");
}
function title16()
{
document.title=" Mark's Homepage|";
setTimeout("title17()","100");
}
function title17()
{
document.title=" Mark's Homepage |";
setTimeout("title18()","100");
}
function title18()
{
document.title=" Mark's Homepage |";
setTimeout("title19()","100");
}
function title19()
{
document.title=" Mark's Homepage |";
setTimeout("title20()","100");
}
function title20()
{
document.title=" Mark's Homepage |";
setTimeout("title21()","100");
}


function title21()
{
document.title="Mark's Homepage |";
setTimeout("titlespecial()","30000");
}

function titlespecial1()
{
document.title="--->Super-Area<--- |";
setTimeout("title21()","3000");
}
function titlespecial2()
{
document.title="--->Geile Page<--- |";
setTimeout("title21()","3000");
}
function titlespecial3()
{
document.title=" ...?xY$$Yx?... |";
setTimeout("title21()","3000");
}
function titlespecial4()
{
document.title="--->Dota RuLeZ<--- |";
setTimeout("title21()","3000");
}
function titlespecial5()
{
document.title="Megatron ist IMB4 |";
setTimeout("title21()","3000");
}
function titlespecial()
{
a=Math.round(Math.random()*5);
if(a=="1")
{
titlespecial1();
};
if(a=="2")
{
titlespecial2();
};
if(a=="3")
{
titlespecial3();
};
if(a=="4")
{
titlespecial4();
};
if(a=="5")
{
titlespecial5();
};
}

function place_all()
{
a="<p align=center><table border=0 bordercolor=red><tr><td><h1></h1></td></tr></table></p>";
document.getElementById("all").innerHTML=a;
}
</script>
</head>
<body bgcolor="111155" onload="start()">
<span id="all"></span>
<script language="JavaScript">
place_all();
</script>
</body>
</html>
 
Hi.
das ist mein source
Bitte lerne was Code-Tags sind und wie man sie anwendet.
<script language="JavaScript">
Die language Angabe ist ein Nicht-Standard. Du solltest
HTML:
<script type="text/javascript">
verwenden.
function place_all()
{
a="<p align=center><table border=0 bordercolor=red><tr><td><h1></h1></td></tr></table></p>";
document.getElementById("all").innerHTML=a;
}
</script>
</head>
<body bgcolor="111155" onload="start()">
<span id="all"></span>
<script language="JavaScript">
place_all();
</script>
</body>
</html>
Ich vermute mal wenn du den place_all() Funktionsaufruf wegläßt tritt der Fehler nicht auf, oder?!
ich benutze tostring nicht das is es ja ..
Die Methode toString wird immer automatisch aufgerufen, wenn ein Objekt in einen String konvertiert werden muss.
 

Neue Beiträge

Zurück