title: setInverval cannot find function?
body: <p>I dumbed down this script so it wasn't so bulky, but the gist of it is that I keep getting a reference error every second that I have no function getList(). I tried to move setInverval() above and below it but it pretty much does nothing. It tells me an anonymous function is calling getList and that it is not defined. </p>
  
  <p>If it makes a difference I had to add the jquery conflict so that it didn't interfere with mootools and I'm running joomla 1.5</p>
  
  <pre><code>jQuery(document).ready(function($) {
  function getList(){
  i=0;
  $.getJSON(
      "./test.php",
      function(data) 
      {   
          while(data.streams[i]){
              channel[i] = data.streams[i];
              stats[i] = data.status[i];
              title[i] = data.title[i];
              viewers[i] = data.viewers[i];
              i++;
          }
      }
    );
  }
  setInterval("getList()", 1000);
  });
  </code></pre>
  
  <p>I tried debugging it via console, but I'm still new at console debugging so it didn't get me too far. This program works alone, without joomla and the jquery no conflict stuff, in it's on HTML file just fine so I'm not sure what could possibly be wrong :/</p>