Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Cross Domain Request JS

Name: Anonymous 2011-07-18 20:02

Hey /prog/ is is possible to make a cross domain request using pure JavaScript and no ugly hacks or external libraries?
What I have so far not working:

var queryURL;
queryURL = "http://en.wikipedia.org/w/index.php?action=render&title=Lisp_(programming_language)";

var request = new XMLHttpRequest();
request.open("GET", queryURL, true);
request.onreadystatechange = function(){
    if (request.readyState === 4){
        content.innerHTML = request.responseText;
    }
};
request.send(null);

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List