title: Passing values from 'Controller' to 'View' class
body: <p>There is a button, when i click that there will be a call to the Server, and i will get a JSON response.</p>
  
  <p>This JSON response will contain a string similar to </p>
  
  <pre><code>{
      "value": "Success",
      "information": {
          "firstName": "kei",
          "surname": "chan"
      }
  }
  </code></pre>
  
  <p>The <code>value</code> field in the JSON will be either SUCCESS or FAIL. So if it is <code>success</code>, i will have to navigate to another view and display the <code>firstName</code> and <code>surname</code>. </p>
  
  <p>I will need to pass the values <code>firstName</code> and <code>lastName</code> to the other view if so.</p>
  
  <p>How can i pass the values of   <code>firstName</code> and <code>lastName</code> in senchaTouch/cordova ?</p>
  
  <p>Code:</p>
  
  <p><strong>the button</strong></p>
  
  <pre><code>xtype:'button',
                     id:'when_button_click',
                     text:'Send',
                     ui:'confirm',
  </code></pre>
  
  <p><strong>Controller class</strong></p>
  
  <pre><code>extend: "Ext.app.Controller",
                    config: {
                    refs: {
                    newNoteBtn: "#when_button_click"
                    },
                    control: {
                    newNoteBtn: {
                    tap: "onNewNote"
                    }
                    }
                    },
                    onNewNote: function () {
   var values = Ext.getCmp('form').getValues();
                   console.log("inside onNewNote function");
  
         Ext.Ajax.request({
                          url: 'http://call.com/the_webservice',
                          params : values,
  
                          failure: function (response) {
                          var text = response.responseText;
                           console.log("fail");
  
                          },                              success: function (response) {
                          var text = response.responseText;
                           console.log("success");
  
                          }
  
                          });
  
  
  
                    }
  
                    // init and launch functions omitted.
                    });
  </code></pre>