Cześć,
Mam taki kawałek kodu:
<html>
<head>
<title></title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var req = new XMLHttpRequest();
req.open('GET', 'http://www.mozilla.org/', true);
req.onreadystatechange = function (aEvt)
{
if (req.readyState == 4)
{
if(req.status == 200)
{
document.write(req.responseText);
}
else
{
document.write("Błąd podczas ładowania strony\n");
}
}
};
req.send(null);
//-->
</script>
</body>
</html>
Jest żywcem ściągnięty ze strony moziili. Niestety na FF nie działa, a paradoksalnie na IE, Safari i Chrome jak najbardziej. Poproszę Was o podpowiedź...