Autor Zpráva
error414-
Profil *
Ma uy snim nekdo zkusenosti?
Docela jsem to pochopil az na malou vecicku. IE6 s SP2 me pise ze nezna objekt httpRequest.responseText;
je to neco se zabezpecenim nebo zna jen httpRequest.responseXML

Testuju a googlim jak muzu ale nic jsem zatim nevymyslel
gajdynator
Profil
s cim?
error414-
Profil *
gajdynator
Jak scim?
/* pouzite na zk=jisteni oblibenosti clanku */
function libi(id_clanku)
{ if (id_clanku != "")
{
var url = "http://error414.com/us_clanku_ajax.php?id_clanku="+id_clanku;

if (url != 0)
{
if (window.ActiveXObject)
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
httpRequest = new XMLHttpRequest();
}
httpRequest.open("GET", url, true);
httpRequest.onreadystatechange= function () {doit(id_clanku);};
httpRequest.send(null);
}
}
}


function doit(id_clanku)
{
if (httpRequest.readyState == 4)
{
if(httpRequest.status == 200)
{

// toto nezna IE
httpRequest.responseText
//----------------------------------------
document.getElementById('ajax'+id_clanku).style.display = "none";
document.getElementById('ajax2'+id_clanku).style.display = "inline";
}
else
{

}
}
}
Toto téma je uzamčeno. Odpověď nelze zaslat.

0