471,853 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

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 2250
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.