Witam,
Mam takie pytanie ponieważ, jak wiecie IE wyświetla niektóre elementy lub i ich nie wyświetla. Mi o to, że Firefox, Opera oraz Safari wyświetlają zapytanie bez problemu, ale IE Jak zwykle ma to w d...
Czy ktoś może mi pomóc, ponieważ wyświetla błąd w linii 31 tego kodu:
var http = false;
if(window.XMLHttpRequest)
{
http = new XMLHttpRequest();
}else if(window.ActiveXObject)
{
http = new ActiveXObject("Msxml2.XMLHTTP");
if(!http)
{
http = new ActiveXObject("Microstft.XMLHTTP");
}
}
function a()
{
http.open("GET","kalendarz.php?miesiac=Maj&rok=2009", true);
http.onreadystatechange = calendarhtml;
http.send(null);
}
function b(form)
{
var month = form.miesiac.options[form.miesiac.selectedIndex].text;
http.open("GET","kalendarz.php?miesiac="+month+"&rok="+2009, true);
http.onreadystatechange = calendarhtml;
http.send(null);
}
function calendarhtml()
{
if(http.readyState == 4 && http.status==200)
{
document.getElementById('cal').innerHTML=http.responseText; //a dokładnie to tu
}
}
a kod html to:
<form action="kalendarz.php" method="get" id="form_connect"> <input type="text" name="data" value="" /> <a href="" onclick="a(); return false;">kalendarz
</a><span id="cal"></span> <input type="radio" name="radio" value="odjazd" /> odjazd
<input type="radio" name="radio" value="przyjazd" /> przyjazd
<br /><input type="submit" name="wykonaj" value="szukaj" />
Z góry dzięki
Pozdrawiam
Ten post edytował linuxoida 5.05.2009, 15:37:42