making xmlhttprequests, to different servers
You cannot do that. XMLHttpRequest is only allowed to connect to the same domain that the page belongs to. This is called the "same origin policy".
Google "same origin policy" or search for it here on SO to learn more.