title: AjaxSubmit with window.location on response
body: <p>I have a problem with ajaxSubmit... The problem is that, when I submit a form and get a response from PHP that have a script with <strong>window.location</strong>, the page doesn't change at all...</p>
  
  <p>My PHP script just returns a script with window.location when the form is submitted correctly, otherwise, it returns a JSON that is parsed on the success function.</p>
  
  <p>Using the tools of Chrome, I see that it loads the window.location URL on the Network Tab but, it doesn't show it to the user...</p>
  
  <p>Here's the code I have:</p>
  
  <pre><code>$("form").submit(function(e) {
      e.preventDefault();
      $("form").ajaxSubmit({
          success: function(resp){
              try{
                  resp=JSON.parse(resp);
                  alert(resp["error"]);
              } catch(e){
                  $("&lt;div&gt;&lt;/div&gt;").html(resp);
              }
  
          }
      });
      return false;
  });
  </code></pre>
  
  <p>How do I need to do to make it work? Is there any property of options parameter of AjaxSubmit that could solve that?</p>