title: AJAX request parameters for JSON store. ExtJS
body: <p>I want to <strong>string together some parameters into an address where I can view an AJAX request in browser</strong>... I think this is what I mean, though I am not comfortable talking about AJAX. I am only a novice front-end web application programmer.</p>
  
  <p>So to start, I have an ExtJS application with a combobox. It is populated by items in a JSON file, from what I can tell. Here is the application code snippet:</p>
  
  <pre><code>                items: [{
                  xtype : 'combobox',
                  queryMode : 'remote',
                  fieldLabel: 'twittersearch',
                  typeAhead : true,
                  allowBlank : applicationtype === 'relatedanalysis' ? true : false,
                  hideTrigger : false,
                  editable : false,
                  multiSelect : true,
                  minChars : 1,
                  store : 'smcc.TwitterSearch',
                  displayField : 'id',
                  name : 'twittersearch',
                  listConfig: {
                      getInnerTpl: function() {
                          return  '&lt;div&gt;&lt;img src="../media/com_concilium/images/twitter/{sn}-logo-med.png" /&gt;{id}&lt;/div&gt;';
                      }
                  }
              }
  </code></pre>
  
  <p>So I understand how store's work in the extJS MVC setup. Documentation here: <a href="http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.ComboBox-cfg-store" rel="nofollow">http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.ComboBox-cfg-store</a></p>
  
  <p>So I searched 'twittersearch' at the root of my all component files with windows explorer to find the proper twittersearch.js store file. Here it is:</p>
  
  <pre><code>Ext.define('Container.store.smcc.TwitterSearch', {
  extend : 'Ext.data.Store',
  model : 'Container.model.smcc.TwitterSearch',
  autoLoad : false,
  
  proxy : {
      type : 'ajax',
      url : './',
      extraParams : {
          option : 'com_concilium',
          view : 'smcc',
          format : 'raw',
          controller : 'smcc',
          task : 'getSocalMediaStream'
      },
      reader : {
          type : 'json',
          root : 'rows',
          totalProperty: 'row_count'
      }
  },
  </code></pre>
  
  <p>});</p>
  
  <p>So is this enough information to create an address and perhaps look at the data? I assume it is something like urlbase/index.php?option=com_concilium&amp;view=smcc&amp;format=raw&amp;controller=smcc&amp;task=getSocialMediaStream</p>