Mam taki kodzik:
Kod
function showWindow(title, width, height, adress, text){
if(adress != ''){
pobierzDane(adress,"okno_body");
}else{
$("#okno_body").text(text);
}
$("#okno_title").text(title);
$("#okno_body").css("width", (width-10)+"px");
$("#okno_body").css("height", (height-20)+"px");
$("#okno_obramowanie").css("width", width+"px");
$("#okno_obramowanie").css("height", height+"px");
$("#okno_obramowanie").css("margin-left", "-"+width/2+"px");
$("#okno_obramowanie").css("margin-top", "-"+height/2+"px");
$("#okno_maska").fadeIn("slow");
window.location.hash='#'+adress.replace('?mode','mode')+"%width="+width+"%height="+height+"%title="+title;
}
if(adress != ''){
pobierzDane(adress,"okno_body");
}else{
$("#okno_body").text(text);
}
$("#okno_title").text(title);
$("#okno_body").css("width", (width-10)+"px");
$("#okno_body").css("height", (height-20)+"px");
$("#okno_obramowanie").css("width", width+"px");
$("#okno_obramowanie").css("height", height+"px");
$("#okno_obramowanie").css("margin-left", "-"+width/2+"px");
$("#okno_obramowanie").css("margin-top", "-"+height/2+"px");
$("#okno_maska").fadeIn("slow");
window.location.hash='#'+adress.replace('?mode','mode')+"%width="+width+"%height="+height+"%title="+title;
}
Wszystko jest ok pod Firefoxem, Operą i Chrome, jednak IE (testowane na wersji 7-9) odmawia współpracy.
Dostaję komunikat: "SCRIPT5007: Nie można ustawić właściwości „innerHTML”: obiekt jest pusty lub niezdefiniowany"
Co można z tym fantem zrobić?