Zekiah-A/Subliminal

Comment system ideas

Closed this issue · 1 comments

var HttpClient = function() {
    this.get = function(aUrl, aCallback) {
        var anHttpRequest = new XMLHttpRequest();
        anHttpRequest.onreadystatechange = function() { 
            if (anHttpRequest.readyState == 4 && anHttpRequest.status == 200)
                aCallback(anHttpRequest.responseText);
        }

        anHttpRequest.open( "GET", aUrl, true );            
        anHttpRequest.send( null );
    }
}

var client = new HttpClient();
client.get('http://some/thing?with=arguments', function(response) {
    // do something with response
});

https://gist.github.com/define-private-public/d05bc52dd0bed1c4699d49e2737e80e7

C# webserver to handle comments implementation ideas, may also use code from StarIKnow server!