title: backbone.js and cross domain scripting
body: <p>I want to work with backbone.js and jquery. The app is supposed to run offline on mobile phones (i.e. "localhost"), there are few calls on a server side backend somewhere in the internet.</p>
  
  <p>What is the best way to realize cross domain requests with backbone.js?</p>
  
  <p>I would like to use JSON, but I could eventually switch back to REST if necessary.</p>
  
  <p>Here's my not very impressive code so far:</p>
  
  <pre><code>App.Collections.Events = Backbone.Collection.extend({
     model: Event,    
     url: 'http://mydomain.com/api/getevents/user_id/1/'
  });
  </code></pre>