Chikwado Posted November 28, 2015 Share Posted November 28, 2015 (edited) Can some one help explain this: Is it error from code, server, browser or I who wrote it? This code is not doing anything Content Some one help. Edited November 28, 2015 by Chikwado Link to comment Share on other sites More sharing options...
thescientist Posted November 28, 2015 Share Posted November 28, 2015 Are you checking for any errors yourself? What have you done to debug the code? It should be obvious from the second you try and execute that code if you have your browsers console open, as it will give you a line number and file name. hint Link to comment Share on other sites More sharing options...
Ingolme Posted November 28, 2015 Share Posted November 28, 2015 Press F12 to open the error console, then run the code. Here's the first problem: ReferenceError: xmlHttpRequest is not defined xhttp = new xmlHttpRequest(); That should be XmlHttpRequest. Javascript is case-sensitive. You should also be declaring all your variables with the var keyword: var xhttp = new XmlHttpRequest(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now