|
c00ce56e error in IE7
Hi all,
I'm very confused with working Ajax together with IE7. During the creating of new object following error happens in IE7:
"Could not complete the operation due to error c00ce56e"
Everything works well in FF.
I read a lot about encoding problem when utf-8 is used, but i used widnows-1250 encoding (also other enc. types were used without success)
Here is the part of the source code:
<?php
Header('Content-type: text/html; charset=windows-1250');
...
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='cs' lang='cs'>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
....
....
javascript:
-------------
function createObjekt() { // získa objekt XMLHttpRequest
var xmlHttp = false;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Váš prohlížeč nepodporuje AJAX!");
}
}
}
return xmlHttp;
}
function ziskejTopNabidku(osoba) {
var XMLHttpRequestObjekt = createObjekt();
var zdrojDat;
if(XMLHttpRequestObjekt) {
XMLHttpRequestObjekt.open("GET", zdrojDat);
XMLHttpRequestObjekt.onreadystatechange = function()
{
if (XMLHttpRequestObjekt.readyState == 4 &&
XMLHttpRequestObjekt.status == 200) {
ukazTopNabidku(osoba, XMLHttpRequestObjekt.responseText);
}
}
XMLHttpRequestObjekt.send(null);
}
}
I don't know where is the problem. PLEASE HELP!
thx a lot
Best regards,
Danny
|