Loading .js file cross domain using ajax
<p>I'm trying to access a cross domain .js file using ajax:</p>

<pre><code>$.ajax({
    type:'get',
    crossDomain:true,
    url: "http://localhost/62588/scripts/bootStrapper.js",
    contentType: "application/json",
    dataType: 'jsonp'    
}).done(callback);
</code></pre>

<p>I have a callback at the moment:</p>

<pre><code>getBootStrapperScript(function (callback) {         
       //do somethibg
})
</code></pre>

<p>I get the following error:</p>

<pre><code>XMLHttpRequest cannot load http://localhost/62588/scripts/bootStrapper.js. Origin http://localhost:62607 is not allowed by Access-Control-Allow-Origin.
</code></pre>

<p>I have been reading about JSONP but I'm not sure how to use it to load a .js file from anoather domain.</p>

<p>If I change the above code to use 'jsonp' for the datatype but I then get this errer:</p>

<pre><code>GET http://localhost/62588/scripts/bootStrapper.js?callback=jQuery18206067646441515535_1354459693160&amp;_=1354459696966 404 (Not Found) 
</code></pre>

<p>How can I load cross domain js files?</p>
