title: Sencha Touch dynamic store URL on click
body: <p>I would like my store in Sencha touch to load a different PHP file depending on which item in my carousel is clicked. Each item in my carousel has itemid: {number} assigned. This is my store at the moment:</p>
  
  <pre><code>var store = new Ext.data.Store({
          model: 'One',
          proxy: {
              type: 'ajax',
              url: '/carousel2store/Carousel 2_files/get-album.php',
              reader: {
                  type: 'json',
                  root: 'albums'
              }
          },....etc
  </code></pre>
  
  <p>I've tried altering the store like this which gives '/carousel2store/Carousel 2_files/get-album2.php', but I would like to make the number 2 dynamic, so it changes on click:</p>
  
  <pre><code>var store = new Ext.data.Store({
          model: 'One',
          proxy: {
              type: 'ajax',
              url: '/carousel2store/Carousel 2_files/get-album' + '2' +'.php',
              reader: {
                  type: 'json',
                  root: 'albums'
              }
          },
  </code></pre>
  
  <p>I've tried to add the itemid</p>
  
  <pre><code>url: '/carousel2store/Carousel 2_files/get-album' + '{itemid}' +'.php', and
  url: '/carousel2store/Carousel 2_files/get-album' + '{data.itemid}' +'.php',
  </code></pre>
  
  <p>But I've had no luck so far. A very helpful guy on the sencha forum suggested I try this:</p>
  
  <pre><code>var store = new Ext.data.Store({
          model: 'One',
          proxy: {
              type: 'ajax',
              url: '/carousel2store/Carousel 2_files/get-album{itemId}.php',
              reader: {
                  type: 'json',
                  root: 'albums'
              }
          }
      });
  
      store.proxy.url = store.proxy.url.replace('{itemId}', 1);
  
      console.log(store);
  </code></pre>
  
  <p>...but I can't get it to work in my testing when clicking with the mouse, I think because it loads the store already before the carousel and item tap listener (at least it didn't work for me in my testing with the mouse). I think I need a way of force updating the store name straight after item click.</p>
  
  <p>Thanks in advance</p>
  
  <p>:-)</p>