469,292 Members | 1,322 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,292 developers. It's quick & easy.

window.XmlHttpRequest doesn't exist in FireFox 2.0?

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?

Nov 9 '06 #1
2 2194
VK
window.XmlHttpRequest doesn't exist in FireFox 2?

Noop... and never did in the previous versions. Try your luck with
XMLHttpRequest (watch the case ;-)

Nov 9 '06 #2

VK wrote:
window.XmlHttpRequest doesn't exist in FireFox 2?

Noop... and never did in the previous versions. Try your luck with
XMLHttpRequest (watch the case ;-)
Good catch - thanks! :D

Nov 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Chris Smith | last post: by
1 post views Thread by Henri Sivonen | last post: by
2 posts views Thread by crazydave | last post: by
5 posts views Thread by Peter Michaux | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.