title: How to submit a form using JsonP in Sencha Touch 2?
body: <p>I'm writing an application using Sencha Touch 2, it works just fine when accessed from web. The problem came when I built it for iPhone and changed the url from a local url (../services/myservice.php) to a remote url (http://remoteurl.com/services/myservice.php)</p>
  
  <p>I started getting a crossdomain error:</p>
  
  <pre><code>**XMLHttpRequest cannot load http://example.com/services/userRegister.php?_dc=1336972603884. Origin http://localhost is not allowed by Access-Control-Allow-Origin.**
  </code></pre>
  
  <p>And I'd like to ask you if there is a way to submit a form using jsonp, so I don't have this problem anymore. </p>
  
  <p>Here is my code for the form:</p>
  
  <pre><code>Ext.define('RegistroMovil.view.Register',{
  extend: 'Ext.form.Panel',
  xtype: 'register',
  requires:[
      'Ext.form.FieldSet',
      'Ext.form.Email'
  ],
  config: {
      title: 'Register',
      iconCls: 'user',
      url: 'http://example.com/proys/congreso/services/userRegister.php',
      items: [
      ...
  </code></pre>
  
  <p>And the code of the button that submits the form:</p>
  
  <pre><code>{
              xtype: 'button',
              text: 'Register',
              handler: function(){
                  this.up('register').submit({
                      success: function(f, a){
                          alert('Your id: ' + a.id);
                          f.reset();
                      }
                  });
              }
          },
  </code></pre>
  
  <p>Thank you very much!</p>