How does jQuery (and others) actually do the GET request in Javascript?
<p>Its a bit unclear how Javascript internally is doing the request. I know its not using the build-in </p>

<p>browser XMLHttpRequest, but how does it do it? Read an article on stackoverflow where they simply create a Javascript </p>

<p>object and set the 
var obj = document.createElement('script');
obj.src = "<a href="http://somedomain.com?blabla=yes" rel="nofollow">http://somedomain.com?blabla=yes</a>"</p>

<p><a href="http://stackoverflow.com/questions/4490143/using-javascript-to-perform-a-get-request-without-ajax">Using JavaScript to perform a GET request without AJAX</a></p>

<p>Here from jQuery:</p>

<pre><code> $.ajax({
        type: 'GET',
        url: url,
        async: false,
        jsonpCallback: 'jsonCallback',
        contentType: "application/json",
        dataType: 'jsonp',
        success: function(json) {
            console.log("console. hurra");
        },
        error: function(e) {
            console.log(e.message);
        }
    });
</code></pre>

<p>Do you know how does jQuery internally build up the request in Javascript and submit it?</p>

<p>I tried this locally and it worked like charm in the sense that the the script was inserted correctly in my page.
var CampaignNs = {</p>

<pre><code>GET: function(url) {
    var head = document.getElementsByTagName('head')[0];
    var n = document.createElement('script');
    n.src = url;
    n.type = 'text/javascript';
    n.onload = function() { // this is not really mandatory, but removes the tag when finished.
        head.removeChild(n);
    };
    head.appendChild(n);
}
</code></pre>

<p>}</p>

<p>I advance thanks</p>

<p>Good article here:
<a href="http://johnnywey.wordpress.com/2012/05/20/jsonp-how-does-it-work/#comment-359" rel="nofollow">http://johnnywey.wordpress.com/2012/05/20/jsonp-how-does-it-work/#comment-359</a></p>
