PDA

View Full Version : IE7 and AJAX : Tab not working :-(



petitepage
05-21-2007, 01:52 AM
Hello,

I have downloaded an AJAX tab demo from
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/


Here is the demo on my server :
http://www.petitepage.com/test/demo.htm

On firefox, it works great :-)
But on IE7, it doesn't work. The Tab is blocked :(

Do you know what could be wrong ?
Is it something that I should set up on my server for IE7 ?

Thanks in advance for any help.

petitepage
05-22-2007, 01:31 PM
I have tried to put some basic logs to track the Error :

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
{
alert(containerid);
alert(document.getElementById(containerid).innerHTML);
alert(page_request);
document.getElementById(containerid).innerHTML=page_request.responseText;
}
}

With Firefox, for "alert(page_request);", I get object "[Object XMLHttpRequest]".
With IE7, I get "[object]" and the page never load.
I have a javascript error on "document.getElementById(containerid).innerHTML=page_request.responseText;"


Do you get the same problem with this page on your IE7:
http://www.petitepage.com/test/demo.htm ?