title: PhoneGap 2.9.0 Loading External Scripts
body: <p>Preface: I'm using Coffeescript and Haml and testing on my Android phone using PhoneGap build.</p>
  
  <p>I am attempting to load an external script that is being compiled on the server for my phonegap app. When testing the page locally everything works but when testing on the actual device it doesn't seem to be getting the script. I have tried loading the script normally in the index.html:</p>
  
  <pre><code>%script{:type =&gt; 'text/javascript', :src =&gt; "http://192.168.5.112:3000/assets/mobile.js"}
  </code></pre>
  
  <p>I have also tried using jQuery's getScript, get, and ajax calls:</p>
  
  <pre><code>$.getScript('http://192.168.5.112:3000/assets/mobile.js', alert('Success'))
  
  $.get 'http://192.168.5.112:3000/assets/mobile.js', (data) -&gt; alert 'Success server' + data
  
  $.ajax 'http://192.168.5.112:3000/assets/mobile.js',
    error: (jqXHR, textStatus, errorThrown) -&gt;
      alert('localError: ' + jqXHR + textStatus + errorThrown)
    success: (data, textStatus, jqXHR) -&gt;
      alert('localSuccess: ' + data + textStatus + jqXHR)
  </code></pre>
  
  <p>All of which give me the successful alert but still isn't loading the script. I also have whitelisted the server in the config.xml</p>
  
  <pre><code>&lt;access origin="http://192.168.5.112:3000" subdomains="true" /&gt;
  </code></pre>
  
  <p>Still no luck. I am using weinre to the best of its ability to debug the issue but either the script doesn't show up at all in the network panel or it is shown there but with no content.</p>
  
  <p>Any ideas are greatly appreciated!</p>