title: javascript variables problem
body: <pre><code>$.getJSON("/data/data/com.android.tcptest/files/BPL.json", function(data) {
          var i = 0, dataSize = data.length, tmpArray = [];
          for(i; i &lt; dataSize; i++){
              tmpArray.push ([data[i].Time.substring(0, data[i].Time.length -2).replace(/:/g, ""),data[i].Bid ]);
          }
          return tmpArray;
      });
      $.plot($("#chart"), [ tmpArray ]);  
  </code></pre>
  
  <p>How can I use <code>tmpArray</code> outside <code>getJSON()</code> function. My programme doesn't work.
  Thanks!</p>