title: Colorbox not redirecting to my chosen URL
body: <pre><code>&lt;script&gt;
  $(document).ready(function() {  
  $('#reset_password').live('click', function(e) { 
      parent.$.fn.colorbox.close(); 
      parent.$(document).bind('cbox_closed', function(){ 
      window.location.href = "search_message_thankyou.php";
          }); 
      });
  });  
   &lt;/script&gt;
  </code></pre>
  
  <p>The script closes the colorbox as I need, but then doesn't redirect to the thank you page. I look up whats happening in the console and this is the error:</p>
  
  <p>Uncaught TypeError: Cannot read property 'location' of undefined</p>
  
  <p>Any help would be hugely appreciated.</p>
  
  <p>Many thanks in advance.</p>