This is my code: (rather, the dodgy part thereof)
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
var requisicao=new XMLHttpRequest();
} else {
var requisicao=new ActiveXObject("Microsoft.XMLHTTP");
}
Ok. Sometimes this works fine, but sometimes the Javascript Debugger in IE tells me this:
Object doesn't support this property or method model.js line 59 character 3
Which amounts to....
var requisicao=new XMLHttpRequest();
What bugs me is the fact that sometimes IE 8 accepts this and moves on but sometimes it chokes and doesn't work?
Any help is welcome
Thanks in advance