title: Error: [object Object] on Javascript
body: <p>I keep getting an error when I run the javascript below in Firebug. I've tried changing multiple things and it still outputs the error. I am working with an api to retrieve information from the XML and then output it onto the screen but I keep getting an object error. Can someone see why?? Any help is appreciated!</p>
  
  <pre><code>$(document).ready(function() {
  
      $('#searchbtn').bind('click' || 'enter',function(e) {
          if ($.trim($('#searchBox').val()) !== '') {
              $('#videos').append('&lt;img src="img/loading.gif" alt="loading" class="loading" /&gt;');
              getVideos(e);
          }
      });
  });
  
  function getVideos(e) {
      e.preventDefault();
      var text = 'text='+$('#searchBox').val();
      $.ajax({
          url: 'getVideos.php',
          dataType: 'xml',
          type: 'POST',
          data: text,
          success: function(data) {                               
              $('#videos').append("&lt;h1&gt;The following events match your search!&lt;/h1&gt;");
  
              var xmlString = data;
  
              if ($(xmlString).find('feed').children('entry').length == 0) {
                  $('#videos').append('&lt;p class="noResults"&gt;Sorry, no results for you! Try searching again!&lt;/p&gt;');
              } else {
                  var videoTitle = [];
  
                  $(xmlString).find('title').each(function() 
                  { 
                  videoTitle.push($(this).text()) });
  
                  $('#videos').append('&lt;ul&gt;');
  
                  $(xmlString).find('entry').each(function(i) {
                      if (i == '40') {
                          return(false);
                      }
                      var vidInfo = '';
                      vidInfo += "&lt;p&gt;"+videoTitle[i]+"&lt;/p&gt;";
                      $('#videos ul').append('&lt;li&gt;'+vidInfo+'&lt;/li&gt;');
                  });
              }
          },
          error: function(data) {
                  console.log('Error: ' + data);
          }
  
      })
  };
  </code></pre>