Topic
  • 2 replies
  • Latest Post - ‏2014-09-20T11:36:51Z by jitupkp
nicoboy
nicoboy
1 Post

Pinned topic XMLHttpRequests request with IE8 doesnt work for me

‏2012-01-10T04:02:02Z |
The XMLHttpRequests works great while testing with Chrome And Firefox, however with IE 8 nothing happens and no errors show either. Very confused. Any suggestions? Thanks

function gettitle(title){

var str = (title.optionshttp://title.selectedIndex.text);
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("title").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","gettitle.php?q="+str,true);

xmlhttp.send();

return;
}
Updated on 2012-01-16T13:50:57Z at 2012-01-16T13:50:57Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1140 Posts

    Re: XMLHttpRequests request with IE8 doesnt work for me

    ‏2012-01-16T13:50:57Z  
    Is a timeout set? Internet Explorer 8 has a new timeout property.
    http://msdn.microsoft.com/en-us/library/cc534581(v=vs.85).aspx
  • jitupkp
    jitupkp
    104 Posts

    Re: XMLHttpRequests request with IE8 doesnt work for me

    ‏2014-09-20T11:36:51Z  
    Is a timeout set? Internet Explorer 8 has a new timeout property.
    http://msdn.microsoft.com/en-us/library/cc534581(v=vs.85).aspx

      get more help

    http://techgurulab.com/course/ajax-quiz-online/