Wait, you mentioned a button earlier.
hittite said:
I click the button and nothing happens.
What button are you talking about? The thing updates itself automatically as you put in data. There shouldn't be a button at all, and I don't see one in your code, unless you are talking about the button at w3schools, in which case, that button should only do something if you changed the code on the left, which I don't see why you would do if you are trying to recreate this program on your machine.
Also, I see a few brackets in your code [] where they shouldn't be. After typing this message I see that get changed to [] when you post, so I'm assuming that's what happened. If not you should probably change [] to at least in your HTML code, as I can't think on an HTML example that uses them.
Where are you getting the AJAX code? I only see the HTML and JavaScript code, unless it's on another page you didn't link to, in which case the connection between the 2 sections is probably where the issue is. Though I'd have to see the original AJAX code to know for sure, and again that's not really my specialty to begin with.
I am unfamiliar with the xmlHTTP object, but after a bit of research it seems to be used to pull data from a server in real time without refreshing the web page. If that is how it works, then this will not operate on simply the client machine. You would need to have a separate server with the data and program on it, to run correctly. At minimum you could download a program that would make your computer a development server as well, though I'm not sure how well this will work. I don't think they would have put this tutorial up if this was the case, but that's how it looks from my end, maybe if I saw the original AJAX code, I might be able to give you a better idea of why this isn't working.
Sorry for the slow response, I've been kind of all over the place tonight.