![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 439 Pomógł: 0 Dołączył: 3.06.2010 Ostrzeżenie: (50%) ![]() ![]() |
Mam problem z firefoxem
Poniższa funkcja działa wsędzie tylko nie w firefox Obiekt "zalogowany_user" nie jest wypełniany zawartością, reszta działa poprawnie. Co należy zmienić żeby działało to pod firefox? function pokaz_user(login, haslo) { var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { xmlhttp = false; } } } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("zalogowany_user").innerHTML = xmlhttp.responseText; } } xmlhttp.open("POST", "pokaz_user.php", false); xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send("login=" + login + "& haslo=" + haslo); } |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 17.06.2025 - 20:08 |