Y
yawnmoth
Say I have the following script:
<script>
var xmlHttp = false;
// http://blogs.msdn.com/ie/archive/2006/01/23/516393.aspx
if (window.XmlHttpRequest) {
alert("part 1");
xmlHttp = new XmlHttpRequest();
} else if (window.ActiveXObject) {
alert("part 2");
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlHttp)
alert("this far!!!!");
</script>
When running it, I don't get any alert windows. Shouldn't I be getting
two?
<script>
var xmlHttp = false;
// http://blogs.msdn.com/ie/archive/2006/01/23/516393.aspx
if (window.XmlHttpRequest) {
alert("part 1");
xmlHttp = new XmlHttpRequest();
} else if (window.ActiveXObject) {
alert("part 2");
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlHttp)
alert("this far!!!!");
</script>
When running it, I don't get any alert windows. Shouldn't I be getting
two?