Problem with making a simple JS XmlHttpRequest call
问题 Edit: Maybe I made the question more complex than it should. My questions is this: How do you make API calls to a server from JS. I have to create a very simple client that makes GET and POST calls to our server and parses the returned XML. I am writing this in JavaScript, problem is I don't know how to program in JS (started to look into this just this morning)! As n initial test, I am trying to ping to the Twitter API, here's the function that gets called when user enters the URL http://api