title: Getting typeError:e is undefined in firebug while running a script
body: <p>I am not able to figure out what is wrong with my code.I am getting data from post as an array and I am then displaying that data in box. </p>
  
  <pre><code>function worker() {
      var a = $("#BeeperBox");
      var delay =2000;
  
      $.ajax({
          url: '/index.php/admin/getLatest', 
          success: function(data) {
              $.each(data.upda,function(i, v){
                  var out = v.name + v.mob ;
                  $('span.blueName').html(out);
                  $("#BeeperBox").show();
                  timerId = setTimeout(function () {
                      a.hide();
                  }, delay);
              });
          },
          complete: function() {
              // Schedule the next request when the current one's complete
              setTimeout(worker, 50000);
          }
      });
  }
  </code></pre>
  
  <p>When i run it firebug shows error: TypeError: e is undefined.</p>