title: Titanium:Getting Nothing in when trying to access json data from remote server
body: <pre><code>  I have a json data in my remote server,and i want to show it in table view,here is my json data  
  </code></pre>
  
  <p>[{"offerType":"Discount","offerName":"BURBERRY -  Buy 2 get 1 free on men's leather          coat     collectioN"},{"offerType":"Discount","offerName":"ARMANI JUNIOR- 20% off on                   Purchase worth INR 30000"}]</p>
  
  <pre><code>      var url = "http://203.122.12.58:8080/api?                username=superuser&amp;password=superuser&amp;action=invokeService&amp;serviceName=offerAction&amp;methodNa    me=getMyOffers&amp;customerId=CUS-12220&amp;storeId=CMPNY-3376";
  
  var win = Ti.UI.createWindow();
  
   win = Ti.UI.currentWindow;  
   win.setBackgroundColor('gray');
   //win.setBackgroundColor = 'white';
    var table = Ti.UI.createTableView();
    var tableData = [];
    var json, fighters, fighter, i, row, nameLabel, nickLabel,offerType,offerName;
  
   var xhr = Ti.Network.createHTTPClient({
    onload: function() {
  // Ti.API.debug(this.responseText);
  
  json = JSON.parse(this.responseText);
  for (i = 0; i &lt; json.length; i++) {
  
      console.log("json = %d",i);
      offerType = json[i].offerType;
      row = Ti.UI.createTableViewRow({
          height:'60dp'
      });
      nameLabel = Ti.UI.createLabel({
          text:offerType,
          font:{
              fontSize:'24dp',
          fontWeight:'bold'
      },
      height:'auto',
      left:'10dp',
      top:'5dp',
      color:'#000',
      touchEnabled:false
      });
      offerName = json[i].offerName;
      nickLabel = Ti.UI.createLabel({
      text:'"' + fighter.nickname + '"',
      font:{
          fontSize:'16dp'
      },
      height:'auto',
      left:'15dp',
      bottom:'5dp',
      color:'#000',
      touchEnabled:false
      });
  
      row.add(nameLabel);
      row.add(nickLabel);
      tableData.push(row);
      }
  
  table.setData(tableData);
  },
   onerror: function(e) {
  Ti.API.debug("STATUS: " + this.status);
  Ti.API.debug("TEXT:   " + this.responseText);
  Ti.API.debug("ERROR:  " + e.error);
  alert('There was an error retrieving the remote data. Try again.');
  },
  timeout:5000
  });
  
  xhr.open("GET", url);
  xhr.send();
  </code></pre>
  
  <p>how can i achieve my goal,Thanks in advance.</p>
  
  <p>Akshay</p>