title: Again, how to get data from callback?
body: <p>I have this code</p>
  
  <pre><code>var children;
  $.ajax({
      url: Routing.generate('snmp_ajax_get_children', {dev: root}),
      async: true, type: "GET"
  }).done(function(data) {
      var children = Array(); 
      for(var i in data) {
          children[i] = data[i].split('|');
          for (var j in data[i]) {
              children[i][j] = $.trim(data[i][j]);
          }
      }
      localStorage.setItem('children', children);
  });
  children = localStorage.getItem(children);
  localStorage.removeItem('children');
  </code></pre>
  
  <p>I use localStorage (ugly, i know) to get data from callback, because any other approach wasn't work for me (i don't know why), any suggestion?</p>